bevy_egui icon indicating copy to clipboard operation
bevy_egui copied to clipboard

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

Open vladbat00 opened this issue 3 years ago β€’ 2 comments

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.

vladbat00 avatar May 01 '22 09:05 vladbat00

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.

coderedart avatar May 03 '22 11:05 coderedart

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

dmlary avatar Jun 08 '23 21:06 dmlary