ITISFoundation / osparc-issues

🐼 issue-only repo for the osparc project
3 stars 5 forks source link

Rotate in Interactive View in smash NB using Chrome on Windows #548

Closed newton1985 closed 1 year ago

newton1985 commented 3 years ago

Long story short

Using a "logi" mouse on a windows PC in chrome, when I try to rotate objects using the interactive view in a jupytersmash notebook, the viewer grabs the mouse even when the clicker is not depressed. I.e., if I hover the mouse over the scene without clicking and holding, it gets rotated anyway. This makes it almost impossible to use, since the scene is perforce changed if I try to remove the mouse from the viewing window, which is often necessary for larger rotations.

Expected behaviour

I expect the scene to rotate only if I'm clicking and holding.

Actual behaviour

The scene rotates even when I'm not clicking and holding.

Steps to reproduce

Open a scene in a jupytersmash NB on windows:

vw = Viewer(interactive=True) vw.set_view_direction(Vec3(0, 1, 0), Vec3(1, 0, 0), Vec3(7.5, 7.5, 0), 70) vw.zoom_all()

Then interact with mouse.

Note: your environment was attached but will not be displayed