Skip to content

Commit

Permalink
Fix scroll horizontal and vertical
Browse files Browse the repository at this point in the history
  • Loading branch information
koenbok committed Jan 28, 2016
1 parent 3315377 commit 17eeb59
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions framer/LayerDraggable.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ class exports.LayerDraggable extends BaseClass
x: @layer.x - @_correctedLayerStartPoint.x
y: @layer.y - @_correctedLayerStartPoint.y

# TODO: what to do with this?
# Should there be a tap event?
# @define "multipleDraggables", @simpleProperty("multipleDraggables", false)

constructor: (@layer) ->

options = Defaults.getDefaults("LayerDraggable", {})
Expand Down Expand Up @@ -188,7 +184,7 @@ class exports.LayerDraggable extends BaseClass
y: touchEvent.clientY
t: Date.now() # We don't use timeStamp because it's different on Chrome/Safari

point = {}
point = _.clone(@_point)

scaleX = (1 / @layer.canvasScaleX() * @layer.scale * @layer.scaleX)
scaleY = (1 / @layer.canvasScaleY() * @layer.scale * @layer.scaleY)
Expand Down

0 comments on commit 17eeb59

Please sign in to comment.