This section uses flow charts to break down gestures into the individual actions that might generate events. Some of the events generated on iPhone are conditional—the events generated depend on what the user is tapping or touching and whether they are using one or two figures. Some gestures don’t generate any events on iPhone.
One-finger panning doesn’t generate any events until the user stops panning—an onscroll event is generated when the page stops moving and redraws—as shown in Figure 7-1.
Displaying the information bubble doesn’t generate any events as shown in Figure 7-2.
Finally, a double tap doesn’t generate any events either as shown in Figure 7-3.
However, if the user taps a clickable element, then some events are generated as shown in Figure 7-4. The flow of events are as follows:
If the user taps on a nonclickable element, then no events are generated.
If the user taps on a clickable element, then a mousemove event is generated.
If the content changes, then no more events are generated.
If the content does not change, then mousedown, mouseup, and click events are generated.
The mousemove event also generates moveover and mouseout events.
Last updated: 2008-02-05