O'Reilly logo

HTML5 iPhone Web Application Development by Alvin Crespo

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

Touch and Gesture events

Touch events are easy to handle on the iPhone; however, there are a couple of "gotchas" when you start diving into when events are fired and how they are interpreted in certain situations. Luckily for us, gestures are also easily implemented with the GestureEvent object. In this section we'll go over touch and gestures in general, getting a fundamental understanding of the technology behind these user experiences so that in the next section, we can successfully create a swipeable slideshow.

Touch events

Touch events include one or more inputs received by your mobile device. In this book we'll focus on up to two-finger events that we can handle in several ways. iOS does a great job at interpreting these inputs; however, elements ...

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