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

  1. i can not specify coordinates (otherwise doesn't work @ all)
  2. 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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -