I had the same problem, and I searched for similar topics for quite some time. Now it’s quite late, but I hope that this will save some happy coders from despair anyway. I checked the jQuery UI Touch Punch file, which I also used in my project, and found how it relates to the x / y position. This is what ultimately worked for me:
$('.pages').on('touchstart vmousedown', function(e){ var this_event_touch_start_Y = e.originalEvent.changedTouches[0].clientY; var this_event_touch_start_X = e.originalEvent.changedTouches[0].clientX; });
For reference, here is a list of all jQuery files that I use:
- JQuery-3.1.1.min.js
- jquery.touchSwipe.min.js
- Jquery-ui.min.js
- jquery.ui.touch-punch.min.js
- jquery.mobile-1.4.5.min.js
source share