Skip to content

fix: Fix offset reset issue caused by floating-point precision at boundary positions#677

Closed
0x1306a94 wants to merge 1 commit intoscenee:masterfrom
0x1306a94:fixbug/scroll_lock
Closed

fix: Fix offset reset issue caused by floating-point precision at boundary positions#677
0x1306a94 wants to merge 1 commit intoscenee:masterfrom
0x1306a94:fixbug/scroll_lock

Conversation

@0x1306a94
Copy link
Copy Markdown
Contributor

When the panel is already at a boundary position, floating-point precision errors on some devices can cause unexpected offset resets in the position calculation.

By applying floor() to the position calculations for top, left, bottom, and right edges in FloatingPanelLayoutAnchor, we ensure integer values are returned, preventing layout issues caused by floating-point precision errors.

#626

FloatingPanelSample.zip

2026-01-13.09.56.34_compressed.mp4

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants