caiofsouza / vue-backtotop

A Back-to-top component for Vue.js, which scroll page to the top when clicked
https://caiofsouza.github.io/vue-backtotop/example/
MIT License
184 stars 42 forks source link

Loop in IE #1

Closed utlime closed 6 years ago

utlime commented 6 years ago

Loop will happen when browser round a number upward to its nearest integer. e.g. if currentScroll = 2 then (currentScroll - (currentScroll / 5)) = 1.6 In chrome it will rounded to 1, but in ie11 it will be rounded to 2 So on next step currentScroll will equal 2 - it's loop

Could you please fix asap

caiofsouza commented 6 years ago

Hey man, thanks for your contribution. I really not did test on IE and forget that behaviour