bevy_egui
bevy_egui copied to clipboard
Mouse up events are ignored in browsers if cursor leaves a focused window
Introduction of the a3d113ae099626a4a3999a6fc15b05d726d99c0c 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: https://github.com/mvlabat/bevy_egui/issues/61#issuecomment-1114053815.
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.
This is still a problem. Are there any known workarounds?