Skip to content
Permalink
Browse files

fix y simulation bug

  • Loading branch information...
J.P.P Treub J.P.P Treub
J.P.P Treub authored and J.P.P Treub committed Aug 6, 2015
1 parent 62ac19e commit d129b20432cb0601af37013a164773efdf76c776
Showing with 3 additions and 3 deletions.
  1. +3 −3 framer/LayerDraggable.coffee
@@ -506,11 +506,11 @@ 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()
@_simulation?.y.stop()
@_simulation = null
@emit(Events.Move, @layer.point)
@emit(Events.DragAnimationDidEnd)
@_simulation = null

animateStop: ->
@_stopSimulation()

0 comments on commit d129b20

Please sign in to comment.
You can’t perform that action at this time.