Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If scrolling parent is not body the scroll lock functionality does not work. #32

Open
mikekoser opened this issue Oct 14, 2014 · 0 comments

Comments

@mikekoser
Copy link

I propose allowing the scroll parent element to be supplied as an option. This allows other elements to used in place of body as the scrolling parent. In my case it was the html element that had the overflow scrolling. In addition to that in order for the unlock scroll logic to behave on popup close we would need the ability to supply the object containing all of the CSS properties to apply to the parent scroll container to effectively put it back the way it was prior to the popup opening. I have made these changes locally, but will fork & apply the changes in git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant