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

What is Framer? Join the Community
Return to index
James Martinez
Posted Jun 30 - Read on Facebook

Hey everyone,

What's the best way to intercept touches for a layer? For example, I have backgroundLayer that is listening to touches, and cardLayer that is on top that covers about half the screen. I want cardLayer to listen for touches and backgroundLayer to listen for touches, but I want them both to respond to the event separately; backgroundLayer should not receive touch events when cardLayer is touched.


Jordan Robert Dobson

You can make then part of the same "ancestry" and the events should move up the chain all the way to the screen.

Jordan Robert Dobson

Take look at this and you'll see I detect touches on the screen as well as on the square layer.

Read the entire post on Facebook