Mouse/pointer not captured when dragging out of the canvas area on web target #1660
Labels
B - bug
Dang, that shouldn't have happened
C - in progress
Implementation is proceeding smoothly
DS - web
When dragging from inside the canvas to outside, the
winit
window stops receiving mouse events.Possible fixes:
PointerEvent
is available, one can usecanvas.setPointerCapture
onpointerdown
to capture the pointer.MouseEvent
fallback, themouse*
events should be attached to the window and the event handling code has to manually track the mouse capturing state. There is an implementation inkiss3d
(web-sys
version that can serve as an example.The text was updated successfully, but these errors were encountered: