Skip to content

Conversation

@0x1306a94
Copy link

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

…ndary positions

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.
@0x1306a94
Copy link
Author

0x1306a94 commented Jan 13, 2026

The code implementation plan has been adjusted and fixed, and all local unit tests have passed.

2026-01-13.16.48.33_compressed.mp4

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.

1 participant