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

Mouse up events are ignored in browsers if cursor leaves a focused window #101

Open
vladbat00 opened this issue May 1, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@vladbat00
Copy link
Owner

Introduction of the a3d113a commit prevents Egui from resetting the latest_pos field of the PointerState struct, which makes it possible to continue dragging a slider, for example, when a cursor leaves a window (which fixed #61). But after this change, it became apparent that Bevy often fails to emit a mouse up event if it happened outside of a focused window (so far I believe it affects only browsers), which results in behaviour similar to this one in the video: #61 (comment).

@coderedart
Copy link

can confirm. pointer release event does not arrive if i left click hold in egui, move pointer out of browser and right click on desktop, bevy won't register the left button released event.

@dmlary
Copy link

dmlary commented Jun 8, 2023

This is still a problem. Are there any known workarounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants