Skip to main content
Question

Disable scrolling under a bottom sheet


Siddharth Ahuja

I'm trying to prototype a simple Google Maps style interaction, where the map is scrollable in both directions, and the bottom sheet is draggable. Somehow that seems impossible to do?

I've tried 2 main methods:

  1. Bottom sheet variants with drag interactions fixed at the top of the map, but the map under it is completely scrollable, so it doesn't read the drag at all. For some unexplainable reason, Figma doesn't treat the top layer as top, and allows everything under to scroll.

  2. I tried treating the bottom sheet as an overlay, but then everything else becomes unclickable, which also is unintended.

Have been through community files and YT videos but either their content doesn't scroll in both directions or they use overlays, both of which don't solve my problem.

Has anyone worked around this before? I want the map to scroll and the bottom sheet to be draggable. Thanks in advance!

 

Hereโ€™s the file with method 1 (try using it on phone)

 Figma File

 

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings