lukehaas / Scrollify

A jQuery plugin that assists scrolling and snaps to sections.
MIT License
1.81k stars 577 forks source link

Overflow scrolling not working #275

Closed andmayfi92 closed 6 years ago

andmayfi92 commented 7 years ago

I am having an issue with the overflow scrolling not working for sections on my site.

The 4th panel on this site is longer than the viewport but scrollify just skips to the next section anyways. Any ideas would be appreciated.

Here is my init code for scrollify

$.scrollify({ section : ".home-section", interstitialSection : ".footer", easing: "easeOutExpo", scrollSpeed: 1100, offset : 0, scrollbars: false, standardScrollElements: "", setHeights: false, overflowScroll: true, updateHash: false, touchScroll:false, before:function() {}, after:function() {}, afterResize:function() {}, afterRender:function() {} });

lukehaas commented 7 years ago

It's because scrollbars is set to false.

andmayfi92 commented 7 years ago

Two questions:

Is this documented anywhere that I have to have scrollbars on for overflow scrolling to work?

Is it possible for it to work in future versions without the scroll bar?

lukehaas commented 7 years ago

I'll update the docs to mention this at some point. Functional updates are unlikely, unless you want to raise a PR for it.