1. 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, wherein each particular view 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; and 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; delivering a respective sub-event to event recognizers for each actively involved view within the view hierarchy, wherein each event recognizer for 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.