Open MaxDavila opened 9 years ago
Very powerful!
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.
I fixed this issue that doesn't break any features. PR: #9
animatedScrollTo
is broken in Safari. Wheneverlastpos !== element.scrolltop
it kills theanimation
even before reaching the desired position to scrollto
. We are already returning false and stopping the animation once already innow > animationStart + duration
.