Patent ID: 8285499

Claim:
A method, comprising: at an electronic device configured to execute software that includes a view hierarchy with a plurality of views: displaying one or more views of the view hierarchy; executing one or more software elements, each software element being associated with a particular view that includes one or more event recognizers, each event recognizer having: an event definition based on one or more sub-events, and an event handler, wherein the event handler: specifies an action for a target, and is configured to send the action to the target in response to the event recognizer detecting an event corresponding to the event definition; detecting a sequence of one or more sub-events; identifying one of the views of the view hierarchy as a hit view, wherein the hit view establishes which views in the view hierarchy are actively involved views; and delivering a respective sub-event to event recognizers for multiple actively involved views within the view hierarchy, wherein each event recognizer for the multiple actively involved views in the view hierarchy processes the respective sub-event prior to processing a next sub-event in the sequence of sub-events.