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

Disallow scrolling if drawer is open (fixes #1348) #1652

Closed
wants to merge 2 commits into from
Closed

Conversation

surma
Copy link
Contributor

@surma surma commented Sep 28, 2015

Pure CSS solution to this problem. To my surprise, switching from overflow: scroll to overflow: hidden after the page has been scrolled doesn’t make it jump back to the top but just locks it wherever it is at that moment.

Put this file in your dist to test locally. Worked for me just fine though.

@Garbee
Copy link
Collaborator

Garbee commented Sep 28, 2015

Should the eatEvent listeners get removed along with this? I think one still exists in master on the content area. Drawer is removed on master, but not 1.0 branch due to missed-merge.

@surma
Copy link
Contributor Author

surma commented Sep 28, 2015

@Garbee Thanks! Good catch! Removed.

@addyosmani
Copy link
Contributor

Change here LGTM, but let's loop in @Zodiase to see if this addresses the issue adequately on their end too.

@Zodiase
Copy link
Contributor

Zodiase commented Oct 1, 2015

Yep LGTM. Thanks.

@sgomes sgomes added this to the v1.0.6 milestone Oct 2, 2015
@addyosmani
Copy link
Contributor

Change LGTM for a merge. Appreciate the double check, @Zodiase.

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

Successfully merging this pull request may close these issues.

None yet

6 participants