Overflow: Hidden will be ignored
SH3ARK opened this issue · 1 comments
SH3ARK commented
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 commented
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.