touch-orbit

touchOrbit(camera) gives an ArcRotateCamera the touch map in touch-gesture: one finger orbits, two fingers moving together pan, a pinch zooms. The decision is made once per gesture. <tosi-b3d>'s default camera and orbitCam both call it; call it yourself on an ArcRotateCamera you build (tosijs-3d#52).

Returns a function that restores Babylon's handler.