Skip to content

Conversation

@MaxDavila
Copy link

animatedScrollTo is broken in Safari. Whenever lastpos !== element.scrolltop it kills the animation even before reaching the desired position to scroll to.
We are already returning false and stopping the animation once already in now > animationStart + duration.
screen shot 2014-10-29 at 10 58 28 pm
screen shot 2014-10-29 at 10 59 49 pm

…ready stopping once now > animationStart + duration. This breaks safari scrolls since it returns false whenever lastpos !== element.scrollTop even when the animation is not done
@MaxDavila MaxDavila changed the title Removes check for lastpos === element.scrolltop, fixes safari bug Removes check for lastpos === element.scrolltop Fixes safari bug Oct 30, 2014
@jaywcjlove
Copy link

Very powerful!

@MethodGrab
Copy link

This does fix the problem for Safari 6 (Safari 8.0.2 works fine without this fix), but it removes the "If user scrolls while animation is running, scroll animation would be immediately canceled" feature.

@gijsroge
Copy link

I fixed this issue that doesn't break any features.
PR: #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants