cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Johnson <>
Subject RE: Standardized gestures
Date Wed, 17 Apr 2013 16:47:07 GMT
This is an interesting idea. I know we get many requests for gesture recognition on BlackBerry
10. Adding the link below as references as well for the BB platform :)

From: []
Sent: Wednesday, April 17, 2013 12:42 PM
Subject: Standardized gestures

I'm experimenting with Cordova on Android, iOS and Windows 8.

Has there been a discussion around trying to implement to set of 'standard' gesture recognizers:

The idea would be that the native side executes JavaScript like:
javascript:cordova.fireEvent('tap', {node: document.elementFromPoint(400, 300), x: 400, y:300
javascript:cordova.fireEvent('slide', {node: document.elementFromPoint(400, 300), x: 400,

This function could use document.createEvent to initiate events on the DOM node:

The purpose of this would be to have a consistent set of gesture recognition across different
devices instead of having javascript code in the 'WebView' trying to do gesture detection.


This transmission (including any attachments) may contain confidential information, privileged
material (including material protected by the solicitor-client or other applicable privileges),
or constitute non-public information. Any use of this information by anyone other than the
intended recipient is prohibited. If you have received this transmission in error, please
immediately reply to the sender and delete this information from your system. Use, dissemination,
distribution, or reproduction of this transmission by unintended recipients is not authorized
and may be unlawful.

View raw message