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

Overflow: Hidden will be ignored #47

Open
SH3ARK opened this issue Oct 1, 2016 · 1 comment
Open

Overflow: Hidden will be ignored #47

SH3ARK opened this issue Oct 1, 2016 · 1 comment

Comments

@SH3ARK
Copy link

SH3ARK commented Oct 1, 2016

The Problem: CSS "overflow: hidden" will be ignored.

If you add "overflow: hidden" to the body element the scrollbar will be gone but this will not disable the scrolling as long as you use this plugin.

@julienetie
Copy link

Maybe something like

var overflowValue = window.getComputedStyle(document.body, null).getPropertyValue('overflow');
if(overflowValue !== 'hidden'){ /* init smoothscroll*/ }

as a workaround or PR

Although since overflow can changed after smooth scroll initialises, it's would probably be better for smooth scroll to be manually invoked, as well as destroyed.

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

2 participants