Skip to content
Permalink
Browse files

Fix small linear animator bug

  • Loading branch information...
koenbok committed Oct 18, 2014
1 parent db9ffd1 commit 5b6aed1ea19930d637b1cad3bbb98043ab9e6537
Showing with 4 additions and 3 deletions.
  1. +4 −3 framer/Animators/LinearAnimator.coffee
@@ -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.
You can’t perform that action at this time.