-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Why does clicking the image to open the modal scrolls the page to the top when disableScrolling
is true?
To produce the following bug, go to Lightbox Examples, open the console, and enter the following.
lightbox.option({ disableScrolling: true });
Then before clicking an image, scroll so that you're not at the top of the page but you should still see the image (so you could click it tho).
After clicking, you can see that the modal opens but the page scrolls up, leaving the modal down there! Are there other things that I should do when implementing disableScrolling
?
hotgeart, rblima0, DanielDarrenJones, jrpeters89, linuxbo and 1 more