@mladen5 wrote:
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
andclientX
.But if i use
event.gesture.srcEvent.layerX
i get correct offset of drag location inside a div. ButsrcEvent.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
Posts: 1
Participants: 1