Touch event model
First Claim
1. A method performed at an electronic device with a touch-sensitive surface executing one or more applications, the method comprising:
- detecting a plurality of concurrent touches on the touch-sensitive surface in a respective view of a respective application, including a first touch and a second touch;
while detecting the plurality of concurrent touches in the respective view, sending, to the respective application touch events including a first touch event that describes the first touch and a second touch event that describes the second touch, wherein the first touch event includes location information for the first touch, the second touch event includes location information for the second touch and the first touch event includes information that is independent of the location of the first touch that differentiates the first touch from the second touch;
after sending the first touch event and the second touch event to the respective application, determining that the first touch is cancelled; and
in accordance with a determination that the first touch is cancelled, sending a touch cancel event to the respective application, wherein the touch cancel event includes the information that is independent of the location of the first touch that differentiates the first touch from the second touch and a separate indication that the first touch has been cancelled.
0 Assignments
0 Petitions
Accused Products
Abstract
A device with a touch-sensitive surface detects a touch on the touch-sensitive surface, determines that the touch is cancelled, and in accordance with a determination that the touch is cancelled, sends a touch cancel event to at least one of the one or more applications. Also disclosed is a device configured to determine that a respective touch has been cancelled by the device. If the respective touch has been cancelled, the device ignores the respective touch. If the respective touch has not been cancelled, the device processes the respective touch. In addition, a device configured to detect one or more touches and process at least a subset of the touches with at least one application is described. While processing at least a subset of the touches, the device receives a touch cancel event, and, in response to receiving the touch cancel event, ignores the touches.
501 Citations
30 Claims
-
1. A method performed at an electronic device with a touch-sensitive surface executing one or more applications, the method comprising:
-
detecting a plurality of concurrent touches on the touch-sensitive surface in a respective view of a respective application, including a first touch and a second touch; while detecting the plurality of concurrent touches in the respective view, sending, to the respective application touch events including a first touch event that describes the first touch and a second touch event that describes the second touch, wherein the first touch event includes location information for the first touch, the second touch event includes location information for the second touch and the first touch event includes information that is independent of the location of the first touch that differentiates the first touch from the second touch; after sending the first touch event and the second touch event to the respective application, determining that the first touch is cancelled; and in accordance with a determination that the first touch is cancelled, sending a touch cancel event to the respective application, wherein the touch cancel event includes the information that is independent of the location of the first touch that differentiates the first touch from the second touch and a separate indication that the first touch has been cancelled. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An electronic device, comprising:
-
a touch-sensitive surface; one or more processors; and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for; detecting a plurality of touches on the touch-sensitive surface in a respective view of a respective application, including a first touch and a second touch; while detecting the plurality of concurrent touches in the respective view, sending, to the respective application touch events including a first touch event that describes the first touch and a second touch event that describes the second touch, wherein the first touch event includes location information for the first touch, the second touch event includes location information for the second touch and the first touch event includes information that is independent of the location of the first touch that differentiates the first touch from the second touch; after sending the first touch event and the second touch event to the respective application, determining that the first touch is cancelled; and in accordance with a determination that the first touch is cancelled, sending a touch cancel event to the respective application, wherein the touch cancel event includes the information that is independent of the location of the first touch that differentiates the first touch from the second touch and a separate indication that the first touch has been cancelled. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable storage medium, storing one or more applications for execution by one or more processors of an electronic device with a touch-sensitive surface, the one or more applications including instructions for:
-
detecting a plurality of concurrent touches on the touch-sensitive surface in a respective view of a respective application, including a first touch and a second touch; while detecting the plurality of concurrent touches in the respective view, sending, to the respective application touch events including a first touch event that describes the first touch and a second touch event that describes the second touch, wherein the first touch event includes location information for the first touch, the second touch event includes location information for the second touch and the first touch event includes information that is independent of the location of the first touch that differentiates the first touch from the second touch; after sending the first touch event and the second touch event to the respective application, determining that the touch is cancelled; and in accordance with a determination that the first touch is cancelled, sending a touch cancel event to the respective application, wherein the touch cancel event includes the information that is independent of the location of the first touch that differentiates the first touch from the second touch and a separate indication that the first touch has been cancelled. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A method performed at an electronic device with a touch-sensitive surface executing one or more applications, the method comprising:
-
detecting one or more touches on the touch-sensitive surface; processing at least a subset of the one or more touches on the touch-sensitive surface with at least one of the one or more applications; while processing at least the subset of the one or more touches on the touch-sensitive surface; receiving, at a respective application of the one or more applications, first touch events, the first touch events including phase information for a respective touch of the one or more touches at different points in time; and after receiving the first touch events, receiving, at the respective application, a touch cancel event that includes phase information that is different from the phase information in the first touch events and that indicates that the respective touch on the touch-sensitive surface has been cancelled by the device; and at the respective application, in response to receiving the touch cancel event, ignoring the respective touch on the touch-sensitive surface. - View Dependent Claims (20, 21, 22)
-
-
23. An electronic device, comprising:
-
a touch-sensitive surface; one or more processors; and memory storing one or more programs for execution by the one or more processors, the one or more programs including instructions for; detecting one or more touches on the touch-sensitive surface; processing at least a subset of the one or more touches on the touch-sensitive surface with at least one of the one or more applications; while processing at least the subset of the one or more touches on the touch-sensitive surface; receiving, at a respective application, first touch events, the first touch events including phase information for a respective touch of the one or more touches at different points in time; and after receiving the first touch events, receiving, at the respective application, a touch cancel event that includes phase information that is different from the phase information in the first touch events and that indicates that the respective touch on the touch-sensitive surface has been cancelled by the device; and at the respective application, in response to receiving the touch cancel event, ignoring the respective touch on the touch-sensitive surface. - View Dependent Claims (24, 25, 26)
-
-
27. A non-transitory computer readable storage medium, storing one or more applications for execution by one or more processors of an electronic device with a touch-sensitive surface, the one or more applications including instructions for:
-
detecting one or more touches on the touch-sensitive surface; processing at least a subset of the one or more touches on the touch-sensitive surface with at least one of the one or more applications; while processing at least the subset of the one or more touches on the touch-sensitive surface; receiving, at a respective application of the one or more applications, first touch events, the first touch events including phase information for a respective touch of the one or more touches at different points in time; and after receiving the first touch events, receiving, at the respective application, a touch cancel event that includes phase information that is different from the phase information in the first touch events and that indicates that the respective touch on the touch-sensitive surface has been cancelled by the device; and at the respective application, in response to receiving the touch cancel event, ignoring the respective touch on the touch-sensitive surface. - View Dependent Claims (28, 29, 30)
-
Specification