javascript - Android 4.x - e.preventDefault e.pageX & e.pageY coordinates NON-JQUERY -


as title says, running android 4.x phonegap.

i not willing use jquery no jquery in here.

how 1 go getting coordinates of touchstart, touchend , touchmove when e.preventdefault enabled?

the coordinates in e is, event variable.

var x = e.targettouches[0].pagex,     y = e.targettouches[0].pagey; 

from: obtaining ipad touchstart coordinates


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -