Skip to content

Commit

Permalink
Add scale to draggable delta
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Bok committed Jan 26, 2016
1 parent 5c031e0 commit 3d977bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framer/LayerDraggable.coffee
Expand Up @@ -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
Expand Down

0 comments on commit 3d977bc

Please sign in to comment.