This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Nick Bewley
Posted Apr 30 - Read on Facebook

Trying to capture the x and y values of a user's starting drag location on the screen. Using event.x and event.y on Events.DragStart captures the wrong location. Can anyone help me understand why, or a possible alternate solution? Thanks a ton

5 Comments

Daniel Maniés

I guess you need event.pageX and event.pageY

Nick Bewley

Thanks Daniel. Still not the right values, however.. http://share.framerjs.com/l5n3iagh6ph6/

Daniel Maniés

Try it on an iPhone. It works on it, but I don't know why it doesn't work on desktop.

Jordan Robert Dobson

For desktop use offsetX and Y. You likely have you use the TouchEvent() method too.

Jordan Robert Dobson
Read the entire post on Facebook