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

What is Framer? Join the Community
Return to index
Chris Wang
Posted May 17 - Read on Facebook

Hey guys, do events have to be registered to layers? If I want to do something wherever the finger leaves the screen, do I have to register touchEnd event to every single visible layer?

Is there something like
Device.onTouchEnd or
Screen.onTouchEnd ?


Benjamin Den Boer

Hey Chris Wang — ah, yes, to target the actual Screen layer, you can write: Framer.Device.screen.onClick → ...

Chris Wang

Awesome! Thank you Benjamin.

Chris Wang

Benjamin, BTW, is there a reason why Framer and Device are first caps and screen is not?

Read the entire post on Facebook