Counter-Up
Counter-Up copied to clipboard
ending up with different number than starting one
example input for reproducing this bug: html number: 2014 delay: 10 time: 3000
this bug is caused by parsing numbers to int instead of rounding them. just replace parseInt with Math.round.
I have the same problem: number: 29 delay: 10 time: 1000
I fixed this bug by replacing line 40
var newNum = parseInt(num / divisions * i);
with:
(num / divisions * i).toFixed();
I hope this helps you
Had same problem and that made me crazy. Only 29 had this problem :+1:
It should be fixed in my fork, can you tell me if it's working for you? Thanks!
@ciromattia yes, @dispa's fix solved the problem
yes, fixed