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

What is Framer? Join the Community
Return to index
Nefaur Khandker
Posted Apr 29 - Read on Facebook

Hey, y'all! I'm having some trouble getting the coordinates of a touch. If you look at this prototype, you'll see what I mean: http://share.framerjs.com/tdninqekeo53/. Basically, I'm trying to get the coordinates of the touch event relative to the "screen" layer. However, when the touch is inside a ScrollComponent I'm getting the coordinates relative to the ScrollComponent even though the event is bound to the "screen" layer. Can anyone suggest a way to work around this behavior? Thanks!

2 Comments

Krijn Rijshouwer

Hey Nefaur Khandker,

I have added a method to your project that does exactly this. (I added a layer that is positioned in the center of the touch x/y) → http://share.framerjs.com/mc4k7ryhit62/

Nefaur Khandker

Thanks, Krijn! That's really helpful.

Read the entire post on Facebook