How to set the operation mode for mobile devices?

For example, single finger dragging model, double finger translation model.

Hi!

Communicator’s operator functionality supports touch events. You can also inspect the operator source code for operators that utilize touch events (such as CameraNavigationOperator.ts) that is provided in the Communicator package at web_viewer/typescript/operators.

Thanks,beau.
For example, can I set up a single finger drag model or a double finger drag model? If possible, how should the code be written?

You’re welcome! Yes, that is possible. I recommend taking a look at the source operator code for samples of how the pan operator is implemented for dragging the model. Here’s a very minimal example of handling touch events: https://3dsandbox.techsoft3d.com/?snippet=0n9FmMGCf9ENmH51ohoLUu
If this is unclear or if I’ve misunderstood your question, please let me know!

1 Like