# Touchpad + CameraPan Operator

**URL:** <https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279>\
**Category:** HOOPS Visualize Web\
**Created:** [December 12, 2024, 4:52pm UTC](https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279 "2024-12-12T16:52:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.larosa](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@justin.larosa](https://forum.techsoft3d.com/u/justin.larosa)\
**Post date:** [December 12, 2024, 4:52pm UTC](https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279/1 "2024-12-12T16:52:14Z")

</div>

Hello,

Looking for some help on how to allow a user to use the touchpad to camera pan - it looks like out of the box you can zoom, select, rotate but haven’t seen anything that suggests you can allow a camera pan with the touchpad. Is it possible with a custom operator?

Thanks,  
Justin

---

<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:** [December 12, 2024, 5:34pm UTC](https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279/2 "2024-12-12T17:34:29Z")

</div>

Hello @justin.larosa,

By default, panning can be done using a touchpad with the help of the keyboard modifier CTRL. Hold down CTRL then double-tap + drag on the touchpad.

You can also dolly the camera by using SHIFT (instead of CTRL) and using the same double-tap + drag movement.

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![justin.larosa](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@justin.larosa](https://forum.techsoft3d.com/u/justin.larosa)\
**Post date:** [December 12, 2024, 6:42pm UTC](https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279/3 "2024-12-12T18:42:52Z")

</div>

Thanks @tino is it also feasible to create a custom operator that would allow the user to simply double tap + drag or double click and drag on the touchpad to pan ?

---

<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:** [December 12, 2024, 7:41pm UTC](https://forum.techsoft3d.com/t/touchpad-camerapan-operator/4279/4 "2024-12-12T19:41:02Z")

</div>

Yes, a custom operator can handle the behavior that you want. As a reference, we publish the TypeScript for the operators in the Communicator package. Most relevant to you is  
the source for the Nav operator which you find in the directory:

_HOOPS\_Communicator\_2024.8.0\web\_viewer\deprecated\typescript\operators\Camera\CameraNavigationOperator.ts_
