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

What is Framer? Join the Community
Return to index
Damiano Gui
Posted Jun 09 - Read on Facebook

Hello again! Is there an easy way to detect if a tap happened outside of a layer, for example to close a side nav? I tried with a transparent layer covering the rest of the screen but it messes up with other tappable elements underneath, and showing/hiding it every time doesn't seem optimal.

2 Comments

Koen Bok

This is the typical way to do it: http://share.framerjs.com/3oeh1w7f75rs/

Damiano Gui

Thanks a lot! I actually ended up using the Pointer Class module by Jordan Robert Dobson for better responsiveness, otherwise the MouseX,Y values would change depending on the browser window size https://www.facebook.com/photo.php?fbid=10154180632638747&set=gm.721917614601979&type=3&theater

Read the entire post on Facebook