Skip to content

Middle and right mouse button interactor issue on Safari #3054

Closed
@finetjul

Description

@finetjul

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions