You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using TypeScript the mouse control is not allowed to be nullable when in fact I wish to not have any control for a particular mouse button.
Currently I have to do this to make it work:
mouseButtons={{
LEFT: three.MOUSE.RIGHT, // map left behaviour (rotate) to right mouse click
MIDDLE: null as unknown as three.MOUSE, // map middle behaviour (zoom) to nothing
RIGHT: three.MOUSE.MIDDLE, // map right behaviour (pan) to middle mouse click
}}
Note that this is similar to #144 but this time for TrackBallControls.
The text was updated successfully, but these errors were encountered:
When using TypeScript the mouse control is not allowed to be nullable when in fact I wish to not have any control for a particular mouse button.
Currently I have to do this to make it work:
Note that this is similar to #144 but this time for
TrackBallControls
.The text was updated successfully, but these errors were encountered: