mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-10 17:30:59 +00:00
Update canvas_gestures.mixin.js
we need to use transformed dimensions to include effect of skew. but we need to divide by current scale and use just the initial scale plus the scaling factor of gesture.
This commit is contained in:
parent
931ef7d58f
commit
d16ef6b124
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@
|
|||
var constraintPosition = target.translateToOriginPoint(target.getCenterPoint(), t.originX, t.originY),
|
||||
dim = target._getTransformedDimensions();
|
||||
|
||||
this._setObjectScale(new fabric.Point(dim.x * s, dim.y * s),
|
||||
this._setObjectScale(new fabric.Point(t.scaleX * dim.x * s / target.scaleX, t.scaleY * dim.y * s / target.scaleY),
|
||||
t, lockScalingX, lockScalingY, null, target.get('lockScalingFlip'), dim);
|
||||
|
||||
target.setPositionByOrigin(constraintPosition, t.originX, t.originY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue