albertogasparin/Optiscroll

Optiscroll prevents scrolling parent regardless of setting

stereokai opened this issue · 6 comments

Optiscroll limits the scrolling to within the scrolled element, and doesn't scroll the entire page when it reaches the edges of the content, regardless of setting.

Can you provide more information? Like browser, Optiscroll version and possibly an example code?

Can I chat with you privately? Are you on Gitter? I can give you a direct link to the project

Thanks!

@albertogasparin Latest Optiscroll, happens in Chrome and Firefox, tested on Mac and Windows :)

Also happens in Safari. Doesn't happen in IE11 and Edge.

I think the issue you are describing is the default browser behaviour if you have nested scrollbars. Sometimes the browser will prevent the parent scroll if it thinks that you still want to scroll the nested child (especially in Firefox).
I've checked in Firefox and Chrome the demo page with JS turned on and then disabled. The scroll behaviour looks exactly the same to me.
If you are experiencing something different please provide me a way to better understand your issue.

Believe me, it's not native browser behavior. I've been dealing with scrolling for a long time now. It didn't happen before I implemented Optiscroll in my project, and doesn't happen with Optiscroll disabled.

I can DM you a direct tunnel to my project and you can look for yourself - should we switch to twitter?

I'm going to close this as the issue is related to how browsers bubble the scroll event to body and window (undocumented feature). It appears not being an Optiscroll bug.