Get offset position from on-drag event?


#1

I am trying to get offsetX and offsetY position from on-drag event but i am getting offset of something else via event.gesture.touches[0].pageX and clientX.

But if i use event.gesture.srcEvent.layerX i get correct offset of drag location inside a div. But srcEvent.layerX property doesn’t exist on device, only on desktop.
I am using Android 6 and Ionic 1.1.

Here is pastebin of event object from device, where gesture.srcEvent.pageX is missing