How to keep scrolling going while overlay is still displayed?

I have a feed view with vertical scrolling. One of the cards has a hover effect - displaying overlay (orange). My problem is that when the overlay is displayed the scrolling stops. To continue scrolling i need to move the mouse out, to hide the overlay and then I can continue.

I have tried playing with overlay settings but sounds like there is nothing Figma can do here to allow scrolling the main form while overlay is still displayed? The only way is to create a full copy of the whole page with that overlay present on it and preserve scrolling position while switching to it?

Cheersezgif-6-75bfc7195c95

6 Likes

Yep, it’s not possible at the moment. But you will soon be able to use Interactive Components instead of overlays so it will be possible. :slight_smile:

5 Likes

Okay for those who is looking for similar issues:

You can fix that by changing frame size of overlay to 1x1px (or just small) and disabling Clip content - then mouse hover will not count over the overlay, unless u hit that tiny 1x1 square, and content will still be displayed.

18 Likes

Wow interesting workaround!

2 Likes

Make sure that you are not adding a background to your overlay also! This workaround does not work when you add a background behind the overlay

I have the same question, for me the soltuion with the 1x1 px frame is not an option. @Gleb you said it will be possible soon. It’s a year now, any good news from the interactive component side?

Interactive components have been released a long time ago.

Thank you @Gleb, so the question for me still is: How can i keep scrolling, klicking and hovering my site, while an overlay is open. For now i can’t do anything when it is open…

Don’t use overlays for that, use interactive components. Overlays block all interactions below them.

1 Like

This was a perfect solution for me! Thank you!

WOOOOW! thank you veeeery much, I was struggling since morning. You helped me a lot