IP Library Granted Patent US 10,289,222
Granted Patent B2
US 10,289,222 · App. 13/857,848 · Granted May 14, 2019

Handling of touch events in a browser environment

Inventors: Genevieve Elizabeth Mak (Toronto, CA); Eli Joshua Fidler (Toronto, CA); Michael Thomas Winkler (Hanover, PA); Matthew Nicholaos Staikos (Toronto, CA); Joseph Charles Mason (Montreal, CA)
Assignee: BlackBerry Limited
G06F3/041G06F3/0485G06F3/04883G06F2203/04806G06F2203/04808
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,289,222
App. No.
13/857,848
Granted
May 14, 2019
Kind
B2
Abstract

Handling of touch events in a browser environment is disclosed. An example method includes, while a document is displayed on a touchscreen display of a device, detecting a touch event at the touchscreen display, and selectively processing the detected touch event using one of a default hander, a touch event handler, and a conversion to one or more mouse events, according to a touch event handling property defined for the document.

Claims (55)

1. A method, comprising:

while a document is displayed on a touchscreen display of a device, detecting a touch event at a first location of the touchscreen display;

identifying a touch event handling property defined in a document header of the document, wherein the touch event handling property is a meta element having a single value referencing a single event handler, wherein the single value is a first value or a second value, the first value referencing a default handler to the exclusion of other event handlers, the second value referencing a touch event handler to the exclusion of other event handlers, and wherein the meta element is applicable to the entirety of the document to identify the single event handler to use to process touch events detected at all portions of the displayed document that are responsive to touch events;

identifying the single event handler, wherein the single event handler is identified based on the identified touch event handling property; and

processing the touch event at the first location using the identified single event handler,

and wherein when the identified single event handler is the default handler, the detected touch event modifies the display of the displayed document,

and wherein when the identified single event handler is the touch event handler, the detected touch event is sent to the document for processing.

2. The method of claim 1 , wherein processing the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are not permitted, and a touch event handler has been defined for the document, executing the touch event handler defined for the document to process the detected touch event.

3. The method of claim 2 , wherein the detected touch event is associated with a target element within the document, the method further comprising, when the detected touch event can be propagated to a further element within the document after execution of the touch event handler:

converting the detected touch event to one or more mouse events and processing the one or more mouse events with a mouse event handler.

4. The method of claim 1 , wherein processing the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are permitted, executing the default handler to process the detected touch event.

5. The method of claim 1 , wherein processing the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are permitted but no default handler has been defined for the detected touch event,

if a touch event handler defined for the document has been defined for processing the detected touch event, executing the touch event handler.

6. The method of claim 1 , wherein processing the detected touch event comprises:

when the touch event handling property defined for the document indicates that at least one touch event is to be processed using a touch event handler and at least one other touch event is to be processed by conversion to one or more mouse events,

if the touch event handler has been defined for processing the detected touch event, executing the touch event handler;

if no touch event handler has been defined for processing the detected touch event and the detected touch event is to be processed by conversion to one or more mouse events, converting the detected touch event to one or more mouse events and processing the one or more mouse events with a mouse event handler.

7. The method of claim 1 , wherein the document comprises a webpage.

8. The method of claim 1 , wherein the document is rendered for display by an application environment executing on the device, and the default handler is provided by the application environment.

9. The method of claim 1 , wherein the touch event handler is comprised in the document.

10. An electronic device, including:

a touchscreen display configured to receive touch events; and

a processor in communication with the touchscreen display interface, the processor being configured to:

while a document is displayed on a touchscreen display of a device, detect a touch event at a first location of the touchscreen display;

identify a touch event handling property defined in a document header of the document, wherein the touch event handling property is a meta element having a single value referencing a single event handler, wherein the single value is a first value or a second value, the first value referencing a default handler to the exclusion of other event handlers, the second value referencing a touch event handler to the exclusion of other event handlers, and wherein the meta element is applicable to the entirety of the document to identify the single event handler to use to process touch events detected at all portions of the displayed document that are responsive to touch events;

identify the single event handler, wherein the single event handler is identified based on the identified touch event handling property; and

process the touch event at the first location using the identified single event handler,

and wherein when the identified single event handler is the default handler, the detected touch event modifies the display of the displayed document,

and wherein when the identified single event handler is the touch event handler, the detected touch event is sent to the document for processing.

11. The electronic device of claim 10 , wherein process the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are not permitted, and a touch event handler has been defined for the document, execute the touch event handler defined for the document to process the detected touch event.

12. The electronic device of claim 11 , wherein the detected touch event is associated with a target element within the document, and the processor is further configured to, when the detected touch event can be propagated to a further element within the document after execution of the touch event handler:

convert the detected touch event to one or more mouse events and process the one or more mouse events with a mouse event handler.

13. The electronic device of claim 10 , wherein process the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are permitted, execute the default handler to process the detected touch event.

14. The electronic device of claim 10 , wherein process the detected touch event comprises:

when the touch event handling property defined for the document indicates that default handling functions are permitted but no default handler has been defined for the detected touch event,

if a touch event handler defined for the document has been defined for processing the detected touch event, execute the touch event handler.

15. The electronic device of claim 10 , wherein process the detected touch event comprises:

when the touch event handling property defined for the document indicates that at least one touch event is to be processed using a touch event handler and at least one other touch event is to be processed by conversion to one or more mouse events,

if the touch event handler has been defined for processing the detected touch event, execute the touch event handler;

if no touch event handler has been defined for processing the detected touch event and the detected touch event is to be processed by conversion to one or more mouse events, convert the detected touch event to one or more mouse events and processing the one or more mouse events with the mouse event handler.

16. The electronic device of claim 10 , wherein the document comprises a webpage.

17. The electronic device of claim 10 , wherein processor is further configured to execute an application environment to render the document for display, and the default handler is provided by the application environment.

18. The electronic device of claim 10 , wherein the touch event handler is comprised in the document.

19. A non-transitory device-readable medium storing code which, when executed by one or more processors of an electronic device, cause the electronic device to:

while a document is displayed on a touchscreen display of the electronic device, detect a touch event at a first location of the touchscreen display;

identify a touch event handling property defined in a document header of the document, wherein the touch event handling property is a meta element having a single value referencing a single event handler, wherein the single value is a first value or a second value, the first value referencing a default handler to the exclusion of other event handlers, the second value referencing a touch event handler to the exclusion of other event handlers, and wherein the meta element is applicable to the entirety of the document to identify the single event handler to use to process touch events detected at all portions of the displayed document that are responsive to touch events;

identify the single event handler, wherein the single event handler is identified based on the identified touch event handling property; and

process the touch event at the first location using the identified single event handler,

and wherein when the identified single event handler is the default handler, the detected touch event modifies the display of the displayed document,

and wherein when the identified single event handler is the touch event handler, the detected touch event is sent to the document for processing.

Assignments (6)
NUNC PRO TUNC ASSIGNMENT Recorded Jun 19, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064271/0199 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 16, 2023
From: BLACKBERRY LIMITED
To: MALIKIE INNOVATIONS LIMITED
Reel/Frame 064104/0103 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 8, 2016
From: RESEARCH IN MOTION CORPORATION
To: RESEARCH IN MOTION LIMITED
Reel/Frame 037919/0111 →
CHANGE OF NAME Recorded Oct 16, 2014
From: RESEARCH IN MOTION LIMITED
To: BLACKBERRY LIMITED
Reel/Frame 034012/0111 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2013
From: WINKLER, MICHAEL THOMAS
To: RESEARCH IN MOTION CORPORATION
Reel/Frame 030692/0254 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 26, 2013
From: MAK, GENEVIEVE ELIZABETH; FIDLER, ELI JOSHUA; STAIKOS, MATTHEW; MASON, JOSEPH CHARLES
To: RESEARCH IN MOTION LIMITED
Reel/Frame 030692/0303 →
Continuity (2)
Continuation 12985337 · Jan 5, 2011
Related Publication 20130222244A1 · Aug 29, 2013