Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix scale factor
  • Loading branch information
koenbok committed Jan 27, 2016
1 parent 0660faa commit f06b12d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framer/LayerPinchable.coffee
Expand Up @@ -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
Expand Down

0 comments on commit f06b12d

Please sign in to comment.