O'Reilly logo

Instant Website Touch Integration by Alexander Dickson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Welcome gestures (Intermediate)

We have looked at many ways of interacting with a web application by using our fingers. Now, we will look at one final method named gestures. You could call the swiping we looked at the last recipe as a type of basic gesture. We will also take a look at pinching, rotating, and a few others.

Getting ready

Some browsers, for example, Mobile Safari provide new events for gestures, and these are:

Event name

Triggered when a multi-touch event…

gesturestart

…starts.

gesturechange

…moves.

gestureend

…ends (who'd have guessed?)

The events are really just sugar for the previous, widely supported events we have looked at. It's easy enough to return early from handling those events, if the number of active touches ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required