html5 - Phonegap/Cordova: How to add Javascript Multi-Touch Events? -
i'm trying make simple app using cordova. since beginning i've been using the:
c.addeventlistener("mousedown", function (event) { mousedown(); }, false);
method. problem that
- i can not specify coordinates (otherwise doesn't work @ all)
- the touch executes when "release" finger, rather executing right away when screen touched.
i'm huge amateur , can't find answers on how handle touch events.
in summary, want use touch (like mouse click) coordinates, , use multitouch events, such -> 2 fingers swipe outward = "zoom out", 2 fingers swipe inward = "zoom in" stuff.
any appreciated :)
you can use library lets handle kind of touch events hammer.js or use do, can download custom build of jquery mobile methods lets handle that.
Comments
Post a Comment