Skip to content
Browse files

Fix dragend event

Only throw the dragend event if we actually started dragging. This fixes a lot of small things like PageComponent jumping to the very last page on a click.
  • Loading branch information...
koenbok committed Apr 5, 2016
1 parent 6e5fe80 commit 24fa7edeb05b409a511da1c0589a5d6a6e9717e7
Showing with 1 addition and 1 deletion.
  1. +1 −1 framer/
@@ -258,7 +258,7 @@ class exports.LayerDraggable extends BaseClass
# be canceled by the user's animation (if the user animates x and/or y).

@emit(Events.DragEnd, event)
@emit(Events.DragEnd, event) if @_isDragging

# Set _isDragging after DragEnd is fired, so that calls to calculateVelocity()
# still returns dragging velocity - both in case the user calls calculateVelocity(),

0 comments on commit 24fa7ed

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