Chapter 9. The Basics of Gestures

Gestures are what make modern touch interfaces great. They’re a big part of why phones and tablets are displacing desktop computers. Great mobile interfaces support gestures.

A gesture is a type of interaction characterized not by a single event, but by a continuous motion made with the fingers. Most gestures simulate manipulation of objects: swiping between photos, scrolling a page, and pinching to zoom. Other gestures don’t relate to manipulation at all, and they don’t usually give feedback. Those kinds of gestures are more like keyboard shortcuts.

In this chapter we’ll focus on the most basic and important gesture: the swipe. This is the one that any good touch interface will need at some point. Swiping is ...

Get Building Touch Interfaces with HTML5: Develop and Design Speed up your site and create amazing user experiences now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.