Blog post preview
September 27, 2023

Demo Wednesday: Touch Gestures

We've published a new demo: 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 by JointJS (@jointjs) on CodePen.

Interested in enhancing your application with interactive diagrams? Start a free JointJS+ 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:

Authors
Blog post author
Zbyněk Stara
Computer nerd, traveler, husband and occasional runner. Experienced in JavaScript software development.
No items found.
Stay in the loop

Speed up your development with a powerful library