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 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 can be either clickable or scrollable as described by Apple's Developer documentation (http://developer.apple.com/library/ios/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#pageTitle):
A clickable...