mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 11:04:43 +00:00
fix multi line selection regression introduced with #2996
This commit is contained in:
parent
dfb5e4e903
commit
dd0b9f63d3
1 changed files with 1 additions and 2 deletions
|
|
@ -515,7 +515,7 @@
|
|||
end = this.get2DCursorLocation(this.selectionEnd),
|
||||
startLine = start.lineIndex,
|
||||
endLine = end.lineIndex;
|
||||
|
||||
ctx.clearRect(-this.width / 2, -this.height / 2, this.width, this.height);
|
||||
for (var i = startLine; i <= endLine; i++) {
|
||||
var lineOffset = this._getLineLeftOffset(this._getLineWidth(ctx, i)) || 0,
|
||||
lineHeight = this._getHeightOfLine(this.ctx, i),
|
||||
|
|
@ -539,7 +539,6 @@
|
|||
boxWidth += this._getWidthOfChar(ctx, line[j2], i, j2);
|
||||
}
|
||||
}
|
||||
ctx.clearRect(-this.width / 2, -this.height / 2, this.width, this.height);
|
||||
ctx.fillRect(
|
||||
boundaries.left + lineOffset,
|
||||
boundaries.top + boundaries.topOffset,
|
||||
|
|
|
|||
Loading…
Reference in a new issue