質問

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?

役に立ちましたか?

解決

You should be able to access

ev.gesture.touches[0].pageX;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top