stop searching target on mousemove on transform (#4442)

This commit is contained in:
Andrea Bogazzi 2017-11-08 21:00:56 +01:00 committed by GitHub
parent ef85ed7eef
commit ece82e6b94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -658,7 +658,7 @@
else {
this._transformObject(e);
}
this._handleEvent(e, 'move', target);
this._handleEvent(e, 'move', this._currentTransform ? null : target);
},
/**

View file

@ -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;