You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 22, 2021. It is now read-only.
I came across a problem with scrolling away from the counter whilst it was still in progress and then scrolling back again
If the original value is 100 and I scrolled away at 50, when I scrolled back it would count from 0 to 50 not 100
I fixed this by:
var $settings = settings;
var $originalText = $this.text(); // added this line
Changed:
var num = $this.text();
to
var num = $originalText;