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

Middle and right mouse button interactor issue on Safari #3054

Open
finetjul opened this issue Apr 4, 2024 · 2 comments
Open

Middle and right mouse button interactor issue on Safari #3054

finetjul opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@finetjul
Copy link
Member

finetjul commented Apr 4, 2024

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
@finetjul finetjul added type: bug 🐞 Errors in functionality module: interactor labels Apr 4, 2024
@floryst
Copy link
Collaborator

floryst commented Apr 4, 2024

What version of safari does this happen on? And does it happen on non-vtk.js viewports as well (i.e. $0 points to document.body, for instance)?

@finetjul
Copy link
Member Author

finetjul commented Apr 4, 2024

What version of safari does this happen on? And does it happen on non-vtk.js viewports as well (i.e. $0 points to document.body, for instance)?

17.2.1 and yes, it happens not just in VTK.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants