lukesnowden / FSVS

Full Screen Vertical Scroll
https://www.lukesnowden.co.uk/full-screen-vertical-scroll/
723 stars 145 forks source link

Scrolling back up from a scrollable slide. #28

Open ItsJoeTurner opened 8 years ago

ItsJoeTurner commented 8 years ago

I have 4 slides on my website. The 4th has a large scrollable div so the user can scroll and see the footer. However when they begin to scroll back up the plugin takes them back to the 3rd slide.

Any way to counter this?

lukesnowden commented 8 years ago

Does the div have the class 'scrollable' on it?

ItsJoeTurner commented 8 years ago

It does and that helps but I'm also having trouble with scrolling down on the site, the content is already scrolled down once the user gets to it. Here's a quick demo: http://cl.ly/1y2C06463y1m

lukesnowden commented 8 years ago

I know what the issue is but its hard to explain or contain. The browser has a "momentum" when the mouse is scrolled, even when the container has reached its upper or lower max reach, it will continue to tick that momentum. I believe (if I can remember correctly) a member issued a pull request to try and tinker with this: https://github.com/lukesnowden/FSVS/commit/1156d557284a17c730c2a340d78cfc4ed5513396 try setting the mouseWheelDelay to 250 see if that helps.

snowman-repos commented 8 years ago

Same problem here. I have a scrollable text container inside a slide. Trying to scroll inside that container just scrolls to the next slide. I added the scrollable class to the container with no effect, also increasing the mouseSwipeDistance and the mouseWheelDelay had no effect either.

Maybe need a function like preventSlide() that can be run if the mouse is over a certain element and you can from inside the beforeSlide() callback.

Epizefiri commented 6 years ago

same problem here, any news?