سؤال

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