---
source: https://www.jointjs.com/blog/demo-wednesday-touch-gestures
generated: 2026-04-19
format: markdown
---

**We've published a new demo:** [**Touch Gestures**](https://www.jointjs.com/demos/touch-gestures)

One common question our customers ask us on support calls is how they can implement touch gestures such as pan and pinch in their JointJS applications. In the past, we have been directing people towards the Hammer.js library, which is unfortunately not maintained anymore. Luckily, other libraries have sprung up in its absence, and the most popular seems to be Interact.js.

Today's demo shows how to use the Interact.js library to support panning and pinching gestures on touch devices, while keeping all other functionality intact. To see it in action, open the demo on a mobile device and experience it for yourself!

See the Pen [JointJS+: Interact.js Gestures](https://codepen.io/jointjs/pen/KKboaZp/a65ab67f941bf5b401bae2f6aa3daf9f) by JointJS ([@jointjs](https://codepen.io/jointjs))
on [CodePen](https://codepen.io).

‍

**Interested in enhancing your application with interactive diagrams?** [**Start a free JointJS+ trial**](/free-trial) **and build visual and No-Code/Low-Code applications with easy and confidence.**

Every Wednesday we share diagramming tips, interesting features and news in JointJS. Learn with us, get content delivered straight to your inbox and become a real diagramming pro: