As pointed out by @Burimi, onepage scroll doesn't actually scroll the site but instead uses the property translate3d
in the plugin's container.
I would encourage you to use fullPage.js instead, which solves this issue by adding the option scrollBar:true
as you can see in this example, providing as well a better user experience keeping the scroll bar.
As explained in fullPage.js FAQs:
Parallax, as well as many other plugins which depends on the scrolling of the site, listens the scrollTop property of javascript. fullPage.js doesn't actually scroll the site but it changes the top or translate3d property of the site. Only when using the fullPage.js option scrollBar:true or autoScrolling:false it will actually scroll the site in a way it is accessible for the scrollTop property.
If you don't want to use the scrollBar
option, you can still use callbacks such as afterLoad
or onLeave
as detailed in the docs.
Additionally, fullPage.js provides compatibility with old browsers such as IE>7, Opera 12... and it provides more options which can be quite helpful.