Not enough accuracy with Context::is_pointer_over_area
#7737
Unanswered
davidhozic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm trying to use the
Context::is_pointer_over_areamethod to determine if any of egui widgets are being covered. This information is then used to ignore events inwinit.The method works great most of the time, but it seems that it's not 100 % accurate. It turns out that the method returns
falsewhen the pointer is technically outside a widget but the widget can still be resized.Here's an example of my problem. If the mouse is moved just outside the window, I no longer detect the window as being covered, thus events are also being processed by my
winitprocessing code. Is there a way to add extra tolerance, so thatContext::is_pointer_over_areawill returntruewhen the pointer is slightly outside the window?Beta Was this translation helpful? Give feedback.
All reactions