Devices, methods, and user interfaces for processing touch events
First Claim
1. A method performed at an electronic device with a touch-sensitive surface, a processor, and memory storing one or more applications for execution by the processor, the method comprising:
- consequential to detecting a touch that starts within a view on the touch-sensitive surface;
sending to a software element associated with the view a plurality of touch events, wherein each touch event comprises a data structure including a phase field that describes a state of the touch at a respective time and the phase field of one of said plurality of touch events is set to a touch phase began value indicating that the touch is new;
determining whether or not the touch should be ignored; and
in accordance with a determination that the touch should be ignored, including in said plurality of touch events a touch event whose phase field is set to a touch phase cancel value indicating that the touch has been cancelled.
0 Assignments
0 Petitions
Accused Products
Abstract
A device with a multi-touch panel and a computer readable medium storing software for displaying a user interface on the multi-touch panel detects a touch at the multi-touch panel. The device sends to the software a touch data structure for defining a state of the touch at a particular time. The touch data structure includes: a location field indicating a location where the touch was or is being received on the multi-touch panel; a phase field defining a phase of the touch at the particular time, the phase of the touch being selected from a plurality of predefined phase state values; and a view field indicating a view, of a plurality of views corresponding to portions of the displayed user interface, that corresponds to the location where the touch was or is being received on the multi-touch panel.
0 Citations
18 Claims
-
1. A method performed at an electronic device with a touch-sensitive surface, a processor, and memory storing one or more applications for execution by the processor, the method comprising:
consequential to detecting a touch that starts within a view on the touch-sensitive surface; sending to a software element associated with the view a plurality of touch events, wherein each touch event comprises a data structure including a phase field that describes a state of the touch at a respective time and the phase field of one of said plurality of touch events is set to a touch phase began value indicating that the touch is new; determining whether or not the touch should be ignored; and in accordance with a determination that the touch should be ignored, including in said plurality of touch events a touch event whose phase field is set to a touch phase cancel value indicating that the touch has been cancelled. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. An electronic device, comprising:
-
a touch-sensitive surface; memory storing one or more applications; and a processor for executing the one or more applications stored in the memory, the one or more applications including instructions for; consequential to detecting a touch that starts within a view on the touch-sensitive surface; sending to a software element associated with the view a plurality of touch events, wherein each touch event comprises a data structure including a phase field that describes a state of the touch at a respective time and the phase field of one of said plurality of touch events is set to a touch phase began value indicating that the touch is new; determining whether or not the touch should be ignored; and in accordance with a determination that the touch should be ignored by the electronic device, including in said plurality of touch events, a touch event whose phase field is set to a touch phase cancel value indicating that the 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 a processor of an electronic device, the one or more applications including instructions for:
consequential to detecting a touch that starts within a view on a touch-sensitive surface; sending to a software element associated with the view a plurality of touch events, wherein each touch event comprises a data structure including a phase field that describes a state of the touch at a respective time and the phase field of one of the plurality of touch events is set to a touch phase began value indicating that the touch is new; determining whether or not the touch should be ignored by the electronic device; and in accordance with a determination that the touch should be ignored by the electronic device, including in said plurality of touch events a touch event whose phase field is set to a touch phase cancel value indicating that the touch has been cancelled. - View Dependent Claims (14, 15, 16, 17, 18)
Specification