# How to set the operation mode for mobile devices?

**URL:** <https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291>\
**Category:** HOOPS Visualize Web\
**Created:** [February 26, 2024, 1:14am UTC](https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291 "2024-02-26T01:14:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![619944680](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/619944680/32/516_2.png) [@619944680](https://forum.techsoft3d.com/u/619944680)\
**Post date:** [February 26, 2024, 1:14am UTC](https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291/1 "2024-02-26T01:14:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![beau.trifiro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/beau.trifiro/32/1205_2.png) [@beau.trifiro](https://forum.techsoft3d.com/u/beau.trifiro)\
**Post date:** [February 26, 2024, 5:36pm UTC](https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291/2 "2024-02-26T17:36:46Z")

</div>

Hi!

Communicator’s operator functionality supports [touch events](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/operators/operators.html#overview). You can also inspect the [operator source code](https://docs.techsoft3d.com/communicator/latest/prog_guide/viewing/operators/operators.html#built-in-operators) for operators that utilize touch events (such as CameraNavigationOperator.ts) that is provided in the Communicator package at web\_viewer/typescript/operators.

---

<div class="post-metadata">

**Author:** ![619944680](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/619944680/32/516_2.png) [@619944680](https://forum.techsoft3d.com/u/619944680)\
**Post date:** [March 4, 2024, 6:31am UTC](https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291/3 "2024-03-04T06:31:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![beau.trifiro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/beau.trifiro/32/1205_2.png) [@beau.trifiro](https://forum.techsoft3d.com/u/beau.trifiro)\
**Post date:** [March 11, 2024, 4:55pm UTC](https://forum.techsoft3d.com/t/how-to-set-the-operation-mode-for-mobile-devices/3291/4 "2024-03-11T16:55:49Z")

</div>

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](https://3dsandbox.techsoft3d.com/?snippet=0n9FmMGCf9ENmH51ohoLUu)  
If this is unclear or if I’ve misunderstood your question, please let me know!
