I am using Framer with Hammer, how can I get the touch position on a certain layer? Assuming coordinate (0,0) is the top left corner of the layer.
hammer.on "tap press", (ev) -> ev = ev.pointers print ev.offsetX
Hi Seoh Char, could you be more specific? Because I am not seeing "pointers" in the event object. Thanks
oh, got it. "gesture" property means you used hammerjs version less than 2.0. if it is right, you could get offset(relative position within target Element) like this
That works for me. Thank you so much, Seoh Char!