mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-03 19:34:46 +00:00
stop searching target on mousemove on transform (#4442)
This commit is contained in:
parent
ef85ed7eef
commit
ece82e6b94
2 changed files with 5 additions and 2 deletions
|
|
@ -658,7 +658,7 @@
|
|||
else {
|
||||
this._transformObject(e);
|
||||
}
|
||||
this._handleEvent(e, 'move', target);
|
||||
this._handleEvent(e, 'move', this._currentTransform ? null : target);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -853,8 +853,11 @@
|
|||
charBox = this.__charBounds[lineIndex][i];
|
||||
if (boxWidth === 0) {
|
||||
left += charBox.kernedWidth - charBox.width;
|
||||
boxWidth += charBox.width;
|
||||
}
|
||||
else {
|
||||
boxWidth += charBox.kernedWidth;
|
||||
}
|
||||
boxWidth += charBox.kernedWidth;
|
||||
if (this.textAlign === 'justify' && !timeToRender) {
|
||||
if (this._reSpaceAndTab.test(line[i])) {
|
||||
timeToRender = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue