Skip to content
This repository has been archived by the owner on Apr 28, 2020. It is now read-only.

Easing killed when the bottom of the page is reached #249

Closed
lucaorio opened this issue Mar 30, 2016 · 1 comment
Closed

Easing killed when the bottom of the page is reached #249

lucaorio opened this issue Mar 30, 2016 · 1 comment
Labels

Comments

@lucaorio
Copy link

Amazing script! 👍

The easing is killed when an element is too close to the bottom of the page.
Is there a way to fix this behavior? Basically when the element top is bigger than $(document).height() - $(window).height(), force the ending of the scroll to $(document).height() - $(window).height()

(Please don't look at the crappy jQuery syntax haha)

@cferdinandi
Copy link
Owner

Sigh... this is a bug that has plagued me since the beginning, and I've never been able to figure out a way to properly fix it.

Certain easing patterns fizzled out when scrolling up from the bottom. In my experience, any of the easeOut*easing patterns will work, but some of the others fail. It's lame, but I would try setting a custom option for that particular link with a different easing pattern.

See this thread for more details: #49

This is also a good reminder for me to update the "Known Issues" section of the readme. Thanks, and sorry for the lame solution to a very real bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants