mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 03:44:45 +00:00
Move enterEditing back into MouseUp
Oops... thats better! :) This way we get all the responsiveness benefits of setting the cursor position on mousedown but can still actually move the objects!
This commit is contained in:
parent
ec144b773d
commit
1499baa7c3
1 changed files with 5 additions and 1 deletions
|
|
@ -97,7 +97,6 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
|
||||
if (this.selected){
|
||||
this.setCursorByClick(options.e);
|
||||
this.enterEditing();
|
||||
}
|
||||
|
||||
if (this.isEditing) {
|
||||
|
|
@ -144,6 +143,11 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
|
|||
this.on('mouseup', function(options) {
|
||||
this.__isMousedown = false;
|
||||
if (this._isObjectMoved(options.e)) return;
|
||||
|
||||
if(this.selected){
|
||||
this.enterEditing();
|
||||
this.initDelayedCursor(true);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue