Mobile terminal click event recognition method and apparatus
AssigneeAdvanced New Technologies Co., Ltd.
InventorSen Yu
Life of this patent
Estimating the term…
Abstract
A mobile terminal tap event recognition method and apparatus are disclosed. The method includes: recording a plurality of touch events detected by a touch screen of a mobile terminal by recording an event type and a timestamp of each touch event; forming one or more completed groups of touch events based on the even types and the timestamps of the plurality of touch events; determining, in response to a tap event and according to the plurality of touch events, whether the tap event takes place in a page scrolling process; and cancelling, in response to a determination that the tap event takes place in the page scrolling process, the tap event.
Claims17
A mobile terminal tap event recognition method, applicable to a mobile terminal, comprising:
- recording, by the mobile terminal, a plurality of touch events detected by a touch screen of the mobile terminal by recording an event type and a timestamp of each touch event in the plurality of touch events,
- wherein the recording an event type and a timestamp of each touch event in the plurality of touch events comprises:
- modifying, for each touch event having a specified event type in the plurality of touch events, the event type of the touch event, and recording the modified event type;
- forming, based on the event types and the timestamps of the plurality of touch events, one or more completed groups of touch events, wherein each of the one or more completed groups of touch events includes a complete sequence of touch events starting with a touch event having the event type of a starting type, and ending with a touch event having the event type of an ending type;
- determining, in response to a tap event and according to the plurality of touch events, whether the tap event takes place in a page scrolling process, wherein the tap event is determined to take place in the page scrolling process if a last completed group of touch events before the tap event includes a touch event having the event type of a scroll type;
- and
- cancelling, in response to a determination that the tap event takes place in the page scrolling process, the tap event,
- wherein the method further comprises:
- after forming one or more completed groups of touch events,
- determining whether a number of completed groups of touch events exceeds N;
- and
- deleting, in response to the number of completed groups of touch events exceeding N, all touch events recorded before N latest completed groups of touch events according to the timestamps of the touch events, wherein N is a natural number greater than or equal to 1.
A mobile terminal tap event recognition apparatus, comprising a processor and a non-transitory computer-readable memory coupled to the processor and configured with instructions executable by the processor to:
- record a plurality of touch events detected by a touch screen of a mobile terminal by:
- recording an event type and a timestamp of each touch event in the plurality of touch events,
- wherein to record an event type and a timestamp of each touch event in the plurality of touch events, the non-transitory computer-readable memory is further configured with instructions executable by the processor to:
- modify, for each touch event having specified event types in the plurality of touch events, the event type of the touch event, and record the modified event type;
- form, based on the event types and the timestamps of the plurality of touch events, one or more completed groups of touch events, wherein each of the one or more completed groups of touch events includes a complete sequence of touch events starting with a touch event having the event type of a starting type, and ending with a touch event having the event type of an ending type;
- determine, in response to a tap event and according to the plurality of touch events, whether the tap event takes place in a page scrolling process, wherein the tap event is determined to take place in the page scrolling process if a last completed group of touch events before the tap event includes a touch event having the event type of a scroll type;
- and
- cancel, in response to a determination that the tap event takes place in the page scrolling process, the tap event,
- wherein the non-transitory computer-readable memory is further configured with instructions executable to:
- after forming one or more completed groups of touch events,
- determine whether a number of completed groups of touch events exceeds N;
- and
- delete, in response to the number of completed groups of touch events exceeding N, all touch events recorded before N latest completed groups of touch events according to the timestamps of the touch events, wherein N is a natural number greater than or equal to 1.
The apparatus of claim, 7 wherein to modify the event type of the touch event, the non-transitory computer-readable memory is further configured with instructions executable by the processor to:
- modify, for a touch event having the event type of a cancellation type, the event type of the touch event to the ending type;
- and
- modify, for a touch event having the event type of the scroll type, the event type of the touch event by:
- determining whether the touch event is global page scrolling or regional page scrolling according to attribute information of the touch event;
- modifying, in response to the touch event being the global page scrolling, the event type of the touch event to a global scroll type;
- and
- modifying, in response to the touch event being regional page scrolling, the event type of the touch event to a regional scroll type.
A non-transitory computer-readable storage medium having instructions stored thereon executable by a processor to cause the processor to perform operations, comprising:
- recording a plurality of touch events detected by a touch screen of a mobile terminal by:
- recording an event type and a timestamp of each touch event in the plurality of touch events,
- wherein the recording an event type and a timestamp of each touch event in the plurality of touch events comprises:
- modifying, for each touch event having specified event types in the plurality of touch events, the event type of the touch event, and recording the modified event type;
- forming, based on the event types and the timestamps of the plurality of touch events, one or more completed groups of touch events, wherein each of the one or more completed groups of touch events includes a complete sequence of touch events starting with a touch event having the event type of a starting type, and ending with a touch event having the event type of an ending type;
- determining, in response to a tap event and according to the plurality of touch events, whether the tap event takes place in a page scrolling process, wherein the tap event is determined to take place in the page scrolling process if a last completed group of touch events before the tap event includes a touch event having the event type of a scroll type;
- and
- cancelling, in response to a determination that the tap event takes place in the page scrolling process, the tap event,
- wherein the operations further comprise:
- after forming one or more completed groups of touch events,
- determining whether a number of completed groups of touch events exceeds N;
- and
- deleting, in response to the number of completed groups of touch events exceeds N, all touch events recorded before N latest completed groups of touch events according to the timestamps of the touch events, wherein N is a natural number greater than or equal to 1.
Dependencies are inferred from the claim text.