Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Response::clicked_elsewhere takes clip rect into account #4274

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

emilk
Copy link
Owner

@emilk emilk commented Mar 30, 2024

clicked_elsewhere now checks against the clipped interact_rect of the widget instead of the full rect.

In practice this shouldn't change much since the function is mostly used for windows and areas, which aren't clipped.

`clicked_elsewhere` now checks against the clipped `interact_rect` of
the widget instead of the full `rect`.
@emilk emilk added bug Something is broken egui labels Mar 30, 2024
@emilk emilk merged commit 8da0e8c into master Mar 30, 2024
37 checks passed
@emilk emilk deleted the emilk/tweak-clicked-elsewhere branch March 30, 2024 09:35
emilk added a commit that referenced this pull request Apr 2, 2024
`clicked_elsewhere` now checks against the clipped `interact_rect` of
the widget instead of the full `rect`.

In practice this shouldn't change much since the function is mostly used
for windows and areas, which aren't clipped.
@emilk emilk mentioned this pull request Apr 2, 2024
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…k#4274)

`clicked_elsewhere` now checks against the clipped `interact_rect` of
the widget instead of the full `rect`.

In practice this shouldn't change much since the function is mostly used
for windows and areas, which aren't clipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken egui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant