Open stuffthatspins opened 7 years ago
Hello, I found some strange bugs.. if i enter 1999 then it's counts till 1998..Also same for 1981 it's counts till 1980. Can you please guide ? Thanks, Ajay
Change this line:
var newNum = parseInt(num / divisions * i);
for:
var newNum = parseInt(Math.round(num / divisions * i));
It should be fixed in my fork, can you tell me if it's working for you? Thanks!
I tried this and it worked -
from: var l = parseInt(i / n * f);
to var l = parseInt(Math.round(i / n * f));
The same problem for 1706. Take fix from https://raw.githubusercontent.com/ciromattia/jquery.counterup/master/jquery.counterup.min.js Thak you!
1981 resolves to 1980...