Frage

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?

War es hilfreich?

Lösung

You should be able to access

ev.gesture.touches[0].pageX;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top