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: 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!


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) →

Nefaur Khandker

Thanks, Krijn! That's really helpful.

Read the entire post on Facebook