# Touchscreen Pan Gesture

**URL:** https://discourse.vtk.org/t/touchscreen-pan-gesture/1047
**Category:** Support
**Created:** [May 29, 2019, 7:40pm UTC](https://discourse.vtk.org/t/touchscreen-pan-gesture/1047 "2019-05-29T19:40:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TravStu22](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@TravStu22](https://discourse.vtk.org/u/TravStu22)
#### Post date: [May 29, 2019, 7:40pm UTC](https://discourse.vtk.org/t/touchscreen-pan-gesture/1047/1 "2019-05-29T19:40:43Z")

</div>

I see indications in the documentation and online that there is touchscreen gesture recognition in VTK. However, I can’t seem to find detailed information on how to get this to work. Even when using the vtkInteractorStyleMultiTouchCamera interactor, there appears to be no way to pan the camera on the Microsoft Surface Pro 6 by dragging various combinations of fingers.

EDIT:  
I’m using Python 3.7 VTK 8.1.2 with a wxVTKRenderWindowInteractor

---

<div class="post-metadata">

### Author: ![TravStu22](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@TravStu22](https://discourse.vtk.org/u/TravStu22)
#### Post date: [May 29, 2019, 8:16pm UTC](https://discourse.vtk.org/t/touchscreen-pan-gesture/1047/2 "2019-05-29T20:16:23Z")

</div>

I wonder if something is converting or downgrading these gestures into mouse events before VTK even sees it?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [May 29, 2019, 8:30pm UTC](https://discourse.vtk.org/t/touchscreen-pan-gesture/1047/3 "2019-05-29T20:30:07Z")

</div>

We have recently implemented multi-touch gestures (pinch, zoom, pan) in 3D Slicer, both on Windows and touchpad on Mac, for Qt-based applications. We integrated most of the necessary changes into VTK about a year ago but later we found a few more issues (inconsistent event position scaling, etc.). We plan to contribute back fixes for these issues into VTK soon (in a few weeks) and we will also add a simple test/example. If you do not want to wait that much then then you may have a look at the changes in VTK fork of @Sunderlandkyl.

---

<div class="post-metadata">

### Author: ![TravStu22](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@TravStu22](https://discourse.vtk.org/u/TravStu22)
#### Post date: [May 30, 2019, 12:38pm UTC](https://discourse.vtk.org/t/touchscreen-pan-gesture/1047/4 "2019-05-30T12:38:33Z")

</div>

My application is wxWidgets based. Maybe I can use your Qt work as a guide.
