Search code examples
angularjshammer.jshybrid-mobile-app

Phonegap-Angular-HammerJs hybrid web application: Get X/Y for a hm-tap event


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?


Solution

  • You should be able to access

    ev.gesture.touches[0].pageX;