Permalink
Browse files

Fix scale factor

  • Loading branch information...
koenbok committed Jan 27, 2016
1 parent 0660faa commit f06b12d0fdf067382789cfc4fd250ab42511c4c1
Showing with 1 addition and 2 deletions.
  1. +1 −2 framer/LayerPinchable.coffee
@@ -93,8 +93,7 @@ class exports.LayerPinchable extends BaseClass
if @scale
@_scaleStart ?= @layer.scale
scale = event.scale * @_scaleStart
scale = scale * @scaleFactor
scale = (((event.scale - 1) * @scaleFactor) + 1) * @_scaleStart
scale = Utils.clamp(scale, @scaleMin, @scaleMax) if (@scaleMin and @scaleMax)
scale = Utils.nearestIncrement(scale, @scaleIncrements) if @scaleIncrements
@layer.scale = scale

0 comments on commit f06b12d

Please sign in to comment.