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:
GordoRank 2014-01-14 00:00:25 +00:00
parent ec144b773d
commit 1499baa7c3

View file

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