> Yes, it may have value. Consider writing a plugin.
> The pointer events spec[1] may be of interest, as things like tap/slide/pinch
> are all non-standard.
> I did this exact same thing [2] for Windows Phone 7, as there aren't even
> mouse events.
Super thanks for the helpful info,
I'll try t
braries would allow
> (within
> > reasonable ms) for more complex 'gesture' detection. I would rather do
> > something like:
> > webView.addGesture('swipe');
> > webView.addGesture('handgrab');
> > onTouch/Gesture:
> > // do gestur
handgrab');
> onTouch/Gesture:
> // do gesture detection in native code
>webView.sendJavascript("cordova.fireEvent('handgrab', {node, ...}");
>
>
> -Original Message-
> From: Filip Maj [mailto:f...@adobe.com]
> Sent: Wednesday, April 17, 20
:
> webView.addGesture('swipe');
> webView.addGesture('handgrab');
> onTouch/Gesture:
> // do gesture detection in native code
>webView.sendJavascript("cordova.fireEvent('handgrab', {node, ...}");
>
>
> -Original Message-
> Fr
vascript("cordova.fireEvent('handgrab', {node, ...}");
-Original Message-
From: Filip Maj [mailto:f...@adobe.com]
Sent: Wednesday, April 17, 2013 12:47 PM
To: dev@cordova.apache.org
Subject: Re: Standardized gestures
I'm not convinced you need any additional cod
I'm not convinced you need any additional code here.
Touch events are already fired by the web view containers. You could build
up gesture detection in JavaScript by listening to these events.
There are libraries out there that do this for you already:
- http://eightmedia.github.io/hammer.js/
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 :)
https://developer.blackberry.com/native/reference/bb10/com.qnx.doc.gestures.lib_ref/topic/overview.html
-Erik
___