As far as I know, the ArcRotateCameraPointersInputs
class doesn’t have the functionality to swap the gestures used for the pan and rotate on mobile. You might be able to create a custom input that extends the ArcRotateCameraPointersInputs
and override the onTouch and onMultiTouch functions to have the option. You could just add a bool that would pan for onTouch
. For onMultiTouch
, you might have to use the previousMultiTouchPanPosition
and multiTouchPanPosition
to get the deltas for x and y (to use as offsetX and offsetY) and then just apply those changes to the camera’s inertialAlphaOffset
and inertialBetaOffset
(like in onTouch).
As this is not the first issue that Im finding about it and I tried it in the past and failed miserably. Can I ask you for help with this and a Playground Example? That would benefit a lot of future researchers as well.
Regards Peter