Forum Academy Marketplace Showcase Pricing Features

Prevent scrolling too much beyond popup

When the user scrolls up and down a popup, it can scroll way beyond the popup, to the see dimmed content behind. Then the user would “lose sight” of the popup.

How do i prevent scrolling too much beyond the popup? To keep the popup within sight.
For example, i want to restrict scrolling to 50px before and after the popup.

There are a few similar topics here, but no real solution.

You need to do some CSS from what I remember, take a look here:

1 Like

You can lock the pop up so that the user cant scroll - locode - Vertically center any popup on the page – remember to remove the space after < for it to work.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.