Skip to content

Commit b3a85b1

Browse files
author
Zack Bloom
committed
Fix bug where minTime wasen't considered, closes CodeByZach#74.
1 parent 896a0a7 commit b3a85b1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

pace.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,8 @@ Pace.go = ->
638638

639639
bar.render()
640640

641+
start = now()
642+
641643
cancelAnimation = false
642644
animation = runAnimation (frameTime, enqueueNextFrame) ->
643645
# Every source gives us a progress number from 0 - 100
@@ -672,7 +674,6 @@ Pace.go = ->
672674

673675
bar.update uniScaler.tick(frameTime, avg)
674676

675-
start = now()
676677
if bar.done() or done or cancelAnimation
677678
bar.update 100
678679

pace.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)