Closed
Description
Bug description
On some safari (laptop (i.e. with touchpad) but not desktop ?), the manipulator on middle and right button never "stop".
Steps to reproduce
Open the InteractorStyleManipulator example, do a right click+drag, on mouse release, moving the mouse is still zooming.
Alternatively, you can reproduce outside of VTK.js by doing the following on body
:
$0.addEventListener("contextmenu", (e) => e.preventDefault());
monitorEvents($0, ["pointerdown", "pointerup"])
Detailed Behavior
The problem comes from Safari that triggers a pointerdown
event with button=2
, but a pointerup event with button=0
Expected Behavior
a right button release event should stop the manipulator from working.
Environment
- vtk.js version: master
- Browsers: safari 17.2.1
- OS: mac