Skip to content

Commit

Permalink
Fix small linear animator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Oct 18, 2014
1 parent db9ffd1 commit 5b6aed1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions framer/Animators/LinearAnimator.coffee
Expand Up @@ -13,12 +13,13 @@ class exports.LinearAnimator extends Animator
@_time = 0

next: (delta) ->

@_time += delta

if @finished()
return 1

@_time += delta
@_time / @options.time

return @_time / @options.time

finished: ->
@_time >= @options.time - @options.precision

0 comments on commit 5b6aed1

Please sign in to comment.