Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Likely fix for simulation null error
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
framer/LayerDraggable.coffee
|
@@ -504,8 +504,8 @@ class exports.LayerDraggable extends BaseClass |
|
|
_stopSimulation: => |
|
|
@_isAnimating = false |
|
|
return unless @_simulation |
|
|
@_simulation.x?.stop() |
|
|
@_simulation.y?.stop() |
|
|
@_simulation.x.stop() if @_simulation.x |
|
|
@_simulation.y.stop() if @_simulation.y |
|
|
@emit(Events.Move, @layer.point) |
|
|
@emit(Events.DragAnimationDidEnd) |
|
|
@_simulation = null |
|
|