문제

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