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

Chapter 4. Touch and Gestures

Creating iPhone web applications, by default, involves touch interaction. This is obvious, and luckily Apple has done a great job getting us up and going quickly by mapping clicks to touch events by default. However, what if we wanted a slideshow that reacted to a swipe from the user? Or, what if we wanted to zoom into a photo, without affecting the layout of a page, when the user pinched within a defined area of our application? Well, that's all up to us as developers.

In this chapter we'll go over touch events and gestures, and use the technology to build a slideshow that is responsive to a user's touch and gestures. Most of the concepts here will be basic to help you understand these new events that were not common ...

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