Question

In our Phonegap-Angular-HammerJs hybrid web application, I am trying to get the X and Y coordinates for a hm-tap event. But I found hm-tap event does not have the clientX and clientY attributes like an ng-click event.

How can we find the X/Y coordinates for a hm-tap/hmTap event?

Était-ce utile?

La solution

You should be able to access

ev.gesture.touches[0].pageX;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top