jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
936 stars 187 forks source link

Panning option without `ctrl` key #249

Open scottlittle opened 5 years ago

scottlittle commented 5 years ago

Designing a pseudo-2D app where enableRotate = False in OrbitControls. This works, and I can get the desired drag and pan movement while holding the ctrl key down. But for convenience, is there a way that I could make drag and pan the primary mouse movement?

vidartf commented 5 years ago

Not currently. There is code on the JS side to allow this configuration, but currently, the wiring code to allow to configure this has not been set up . We would need to define an enum type to specify mouse buttons, and maybe later also a way to specify keyboard keys.