chuanqisun / spacemouse-anywhere

Bring 3DConnexion SpaceMouse to more places on the web
MIT License
19 stars 3 forks source link

Support inverting zoom #4

Closed coreyward closed 4 years ago

coreyward commented 4 years ago

I tend to think of the Spacemouse handle as a handle on the model (or in this case, canvas). Thus pushing to the left moves the canvas to the left (effectively the same as scrolling right), and pulling the Spacemouse handle up moves the canvas closer (i.e. zooming in).

This is not possible currently, but should be relatively straightforward to implement as an “Invert zoom” setting (following the established paradigm). I may take this on if I find myself with some time, but that's not likely for a while.

Thanks for making this plugin regardless!

chuanqisun commented 4 years ago

I agree. Spacemouse uses a direct manipulation model in all its 3D applications. And to many users one way will be more "natural" than the other. I should be able to get this in fairly easily.

Thanks for the suggestion!

chuanqisun commented 4 years ago

Implemented in a9aecab9da98139b6edc1fc942fb13bfd04ca981. Also added a 3D mode treats the canvas and the knob in the same spatial coordinate system. image