-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
mouseevents in WGLMakie are not reliable #4657
Comments
Is that a regression or have you just used master to make sure you have all the newest fixes? |
doubleclick mouseevents are unreliable on the latest release too (but just for WGLMakie), so not a (recent) regression:
can you reproduce? |
Maybe WGLMakie is squashing events and with #4426 they get picked up as drag instead? Or maybe WGLMakie is just too slow for the delay? Something like using Dates
on(e -> println(now(), " ", e), events(fig).mousebutton, priority = 100000)
on(e -> println(now(), " ", e), events(fig).mouseposition, priority = 100000) might be useful to figure out what's happening |
WGLMakie seems to be squashing events, but IIUC they are not getting picked up as drag as there are no mouse move events printed inbetween the press and release events:
does this mean WGLMakie is just too slow? |
Yeah, it's throttled so this could happen. |
changing the in this simple MWE the number of missed single clicks is maybe 5%, but in a full-fledged app i have with a couple dozen widgets and DataInspector turned on it is closer to 95%. |
a workaround seems to be to use |
Huh, that points to you having other long running events registered on mouse... on(scene.events.mouseevent) do x
@async do_your_event_handling
end |
with the master branch of Makie on M2 apple silicon and chrome, double-clicking on the MWE below consistently works in GLMakie, but maybe only half or less of the time with WGLMakie:
sometimes one can "reset" the state in WGLMakie by focusing on a different window in your OS desktop, but not always.
The text was updated successfully, but these errors were encountered: