mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-24 07:34:41 +00:00
Merge pull request #2625 from asturur/multitouch
Fix multi touch scaling speed
This commit is contained in:
commit
7cb4f17833
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