Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed NaN :rate and 0.0 :eta when curr is set. #212

Closed

Conversation

francisokoyo
Copy link

  • Setting the current progress index to anything other than 0 will cause the value of this.start to be undefined. This causes the calculation for :eta and :rate to produce useless information.
    • Replaced conditional to set start only when the progress is ticked when current == 0.
    • We will always set the start time on first tick anyway.

This PR should resolve and close #159

- Setting the current progress index to anything other than `0` will cause the value of `this.start` to be undefined. This causes the calculation for `:eta` and `:rate` to produce useless information.
    - Replaced conditional to set `start` only when the progress is ticked when `current` == 0.
    - We will always set the `start` time on first tick anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting curr property breaks :eta and :rate
1 participant