Permalink
Browse files

Rename

  • Loading branch information...
koenbok committed Apr 20, 2015
1 parent 6e913b4 commit e65ea33a9455505846f3e1ae975f5da9eff21bd5
Showing with 5 additions and 5 deletions.
  1. +5 −5 framer/LayerDraggable.coffee
@@ -151,7 +151,7 @@ class exports.LayerDraggable extends BaseClass
y: touchEvent.clientY - @_correctedLayerStartPoint.y
# Store the current layer scale so we can correct movement for it
@_canvasFrame =
@_canvasScale =
x: @layer.canvasScaleX()
y: @layer.canvasScaleY()
@@ -179,8 +179,8 @@ class exports.LayerDraggable extends BaseClass
y: touchEvent.clientY - @_correctedLayerStartPoint.y - @_layerCursorOffset.y
# Scale the offset with the screen scale for the current layer
offset.x = offset.x * @speedX * (1 / @_canvasFrame.x) * @layer.scaleX * @layer.scale
offset.y = offset.y * @speedY * (1 / @_canvasFrame.y) * @layer.scaleY * @layer.scale
offset.x = offset.x * @speedX * (1 / @_canvasScale.x) * @layer.scaleX * @layer.scale
offset.y = offset.y * @speedY * (1 / @_canvasScale.y) * @layer.scaleY * @layer.scale
# See if horizontal/vertical was set and set the offset
point = @layer.point
@@ -489,8 +489,8 @@ class exports.LayerDraggable extends BaseClass
velocity = @velocity
velocityX = velocity.x * @momentumVelocityMultiplier * @speedX * (1 / @_canvasFrame.x) * @layer.scaleX * @layer.scale
velocityY = velocity.y * @momentumVelocityMultiplier * @speedY * (1 / @_canvasFrame.y) * @layer.scaleY * @layer.scale
velocityX = velocity.x * @momentumVelocityMultiplier * @speedX * (1 / @_canvasScale.x) * @layer.scaleX * @layer.scale
velocityY = velocity.y * @momentumVelocityMultiplier * @speedY * (1 / @_canvasScale.y) * @layer.scaleY * @layer.scale
@_setupSimulation()
@_isAnimating = true

0 comments on commit e65ea33

Please sign in to comment.