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.


Koen Bok

This is the typical way to do it:

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

Read the entire post on Facebook