Translating touch events from Javascript to jQuery Translating touch events from Javascript to jQuery android android

Translating touch events from Javascript to jQuery


jQuery 'fixes up' events to account for browser differences. When it does so, you can always access the 'native' event with event.originalEvent (see the Special Properties subheading on this page).


$(window).on("touchstart", function(ev) {    var e = ev.originalEvent;    console.log(e.touches);});

I know it been asked a long time ago, but I thought a concrete example might help.