Update itext_click_behavior.mixin.js

This commit is contained in:
Andrea Bogazzi 2015-05-19 23:24:09 +02:00
parent dd769a98cf
commit d659f16a44

View file

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