I’m using OrbitControls to control touch events in an app that uses three js on a mobile device.
OrbitControls maps some touch events such as: single touch -> rotate, muti touch and move -> pan, and pinch -> zoom
Similarly, I want to map the “double touch” gesture to another action (toggle between maximizing and restoring a window pane)
I found some packages that handle double touch such as: here
I’m curious if adding external package is the way to go, since there is some logic involved, e.g. to differentiate double touch from two separate touches
I have not found examples in threejs that make use of double touch.
How should I go about handling this?
Can someone point to an example of threejs with double touch?