Skip to content

Keep held widget geometry correct when an ancestor scrolls - #115

Merged
trissim merged 1 commit into
mainfrom
fix/native-held-scene-scroll-20261008
Oct 8, 2026
Merged

trissim merged 1 commit into
mainfrom
fix/native-held-scene-scroll-20261008

Conversation

@trissim

@trissim trissim commented Oct 8, 2026 •

Copy link
Copy Markdown

While a widget's updates are held, the compositor kept the frozen screen coordinates of its subtree, which went wrong if an ancestor scrolled. _compositor.py now stores each entry's rendered parent and recomputes the position from the ancestor's current placement and clip, falling back to exact placement for missing, resized, screen-relative or partial captures. screen.py gets a small matching change, and held roots keep their outer geometry when scrolled offscreen. Tests are added in test_viewport_geometry_targets.py and adjusted in test_batch_paint_admission.py.

Copilot AI balanced review requested due to automatic review settings October 8, 2026 04:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit 03a2ad3 into main Oct 8, 2026
0 of 22 checks passed
@trissim trissim changed the title Project held body geometry under ancestor scrolling Keep held widget geometry correct when an ancestor scrolls Oct 11, 2026
@trissim
trissim deleted the fix/native-held-scene-scroll-20261008 branch October 11, 2026 20:05
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