Skip to content

Commit

Permalink
Fix bug where minTime wasen't considered, closes #74.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Bloom committed Mar 5, 2014
1 parent 896a0a7 commit b3a85b1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ Pace.go = ->

bar.render()

start = now()

cancelAnimation = false
animation = runAnimation (frameTime, enqueueNextFrame) ->
# Every source gives us a progress number from 0 - 100
Expand Down Expand Up @@ -672,7 +674,6 @@ Pace.go = ->

bar.update uniScaler.tick(frameTime, avg)

start = now()
if bar.done() or done or cancelAnimation
bar.update 100

Expand Down
5 changes: 3 additions & 2 deletions pace.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b3a85b1

Please sign in to comment.