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

What is Framer? Join the Community
Return to index
Christian Selig
Posted Mar 04 - Read on Facebook

Quick question that I couldn't find an answer to: is there a way to stop a layer from passing touches onto the layers behind it? As in, if I add a full screen overlay, the layers behind shouldn't accept touches if I tap that area of the overlay?


Jordan Robert Dobson

They should let it pass through... one way is to add a TouchStart event that does nothing... That's what I typically do. You may be able to add myLayer.ignoreEvents = false to have it block events too. I haven't tried that yet though.

Koen Bok

Jordan is right. To fully understand event bubbling you can read this:

Christian Selig

Thanks guys, I have to get in the JavaScript mindset. :)

Jordan Robert Dobson

Yeah this is one those things that once you understand it everything gets much easier.

Read the entire post on Facebook