This repository has been archived by the owner on Nov 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Prevent the page below the modal from scrolling #3
Comments
jasonlynx
changed the title
Is there a way to prevent the page below the modal from scrolling?
Prevent the page below the modal from scrolling
Mar 25, 2020
@jasonlynx for Prevent the page, i use it:
And the next step is to add an option for the gallery:
Enjoy! |
@ImGr0k Review your functions:
Credit on stack-overflow |
I'd suggest setting up a css class .no-scroll {overflow: hidden;} and then onShow add that class to that body and afterHide remove it. EDIT: This somehow doesn't work on iOs safari. Or at least not completely, it lets you scroll the first time you try and then it stops. As a workaround I added this css rule and it seems to work:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: