Permalink
Browse files

Fix simulation bug

  • Loading branch information...
koenbok committed Apr 7, 2015
1 parent 0e65db3 commit 64896a8071dd5473e187adda8931223af787a6cd
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/LayerDraggable.coffee
@@ -504,8 +504,8 @@ class exports.LayerDraggable extends BaseClass
_stopSimulation: =>
@_isAnimating = false
return unless @_simulation
@_simulation.x.stop() if @_simulation.x
@_simulation.y.stop() if @_simulation.y
@_simulation?.x?.stop() if @_simulation.x
@_simulation?.y?.stop() if @_simulation.y
@emit(Events.Move, @layer.point)
@emit(Events.DragAnimationDidEnd)
@_simulation = null

0 comments on commit 64896a8

Please sign in to comment.