Skip to content
This repository was archived by the owner on Aug 22, 2021. It is now read-only.

Scrolling away from counter then back again gives incorrect final valueΒ #28

@russelcole

Description

@russelcole

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions