mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-09 22:34:43 +00:00
Merge pull request #2214 from asturur/itext-cursorposition
Fix cursor postion click on end of line
This commit is contained in:
commit
d2600f47c8
1 changed files with 2 additions and 1 deletions
|
|
@ -219,8 +219,9 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
}
|
||||
|
||||
if (mouseOffset.y < height) {
|
||||
//this happens just on end of lines.
|
||||
return this._getNewSelectionStartFromOffset(
|
||||
mouseOffset, prevWidth, width, charIndex + i, jlen);
|
||||
mouseOffset, prevWidth, width, charIndex + i - 1, jlen);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue