Permalink
Browse files

Add scale to draggable delta

  • Loading branch information...
Koen Bok
Koen Bok committed Jan 26, 2016
1 parent 5c031e0 commit 3d977bc450070abf8024fac4b6acbbc7da7cbbe0
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/LayerDraggable.coffee
@@ -176,8 +176,8 @@ class exports.LayerDraggable extends BaseClass
# See if horizontal/vertical was set and set the offset
point = @layer.point
point.x += event.delta.x if @horizontal
point.y += event.delta.y if @vertical
point.x += event.delta.x * (1 / @layer.canvasScaleX() * @layer.scale * @layer.scaleX) if @horizontal
point.y += event.delta.y * (1 / @layer.canvasScaleY() * @layer.scale * @layer.scaleY) if @vertical
# Constraints and overdrag
point = @_constrainPosition(point, @_constraints, @overdragScale) if @_constraints

0 comments on commit 3d977bc

Please sign in to comment.