# How to disable the dual finger zoom function

**URL:** <https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195>\
**Category:** HOOPS Visualize Web\
**Created:** [November 10, 2024, 2:07pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195 "2024-11-10T14:07:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![2415994048](https://avatars.discourse-cdn.com/v4/letter/2/a87d85/32.png) [@2415994048](https://forum.techsoft3d.com/u/2415994048)\
**Post date:** [November 10, 2024, 2:07pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195/1 "2024-11-10T14:07:40Z")

</div>

There may be inaccuracies in the mobile browser, and I want to disable this feature and control it through my own code

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [November 10, 2024, 2:15pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195/2 "2024-11-10T14:15:25Z")

</div>

Hello @2415994048,

It does not look like there is a **public** API to control the variable `_pinchZoomModifier` in the [CameraZoomOperator](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Operators.Camera.CameraZoomOperator.html#camerazoomoperator) class. I will create a feature request to include set/get methods to access this variable.

An **unofficial** way to suppress the pinch zoom feature is to set `_pinchZoomModifier` to zero:

```auto
var om = hwv.operatorManager;
var operatorZoom = om.getOperator(Communicator.OperatorId.Zoom);
operatorZoom._pinchZoomModifier=0;

```

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![2415994048](https://avatars.discourse-cdn.com/v4/letter/2/a87d85/32.png) [@2415994048](https://forum.techsoft3d.com/u/2415994048)\
**Post date:** [November 10, 2024, 3:54pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195/3 "2024-11-10T15:54:15Z")

</div>

Thank you very much for your help. After setting it up, i can indeed turn off the two finger zoom function. Currently, the effect is that it is not possible to pan the drawing with two fingers on Android, but it can still be translated on iOS. However, there is a problem that the two fingers can still pan the drawing and capture the finger position. There is a probability that the center position of the drawing will be frequently changed during the two finger operation

I want to know which of the above situations is normal. Currently, I prefer the effect of Android fixed center position and how to avoid iOS issues

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [November 10, 2024, 4:42pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195/4 "2024-11-10T16:42:46Z")

</div>

It sounds like what you want is to just have the orbit operator be active while disabling the pan and zoom operator. To do this, you can control what is in the operator stack via [OperatorManager](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/OperatorManager.html#operatormanager) class.

Note that the `Navigation` operator combines pan, zoom and orbit. So will need to replace `Navigation` with `Orbit` and make sure that `Pan` and `Zoom` are not in the operator stack.

---

<div class="post-metadata">

**Author:** ![2415994048](https://avatars.discourse-cdn.com/v4/letter/2/a87d85/32.png) [@2415994048](https://forum.techsoft3d.com/u/2415994048)\
**Post date:** [November 10, 2024, 5:03pm UTC](https://forum.techsoft3d.com/t/how-to-disable-the-dual-finger-zoom-function/4195/5 "2024-11-10T17:03:09Z")

</div>

Okay, thank you for your reply. I will try to readjust the configuration
