cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.89k stars 3.82k forks source link

Update _animate.js #1256

Open jethromo opened 5 years ago

jethromo commented 5 years ago

I'm seeing a bug in Safari 12.0.2/OSX 10.13.6 in which this condition is not met, and therefore scrollEnd never gets fired. It only happens when the user gets to the end of the scroll pane, goes up a couple pages, then goes back to the end. If I remove the if statement, scrollEnd is always fired and the issue is resolved. Is there a hidden negative to doing that which I've not yet seen?