Skip to content

Commit

Permalink
Merge pull request #2393 from asturur/fix-text-enter-edit-on-corner
Browse files Browse the repository at this point in the history
Fix text enter edit on corner
  • Loading branch information
kangax committed Aug 9, 2015
2 parents 7c6bdd9 + 94ab565 commit d742cc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mixins/itext_click_behavior.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fabric.util.object.extend(fabric.IText.prototype, /** @lends fabric.IText.protot
return;
}

if (this.__lastSelected) {
if (this.__lastSelected && !this.__corner) {
this.enterEditing();
this.initDelayedCursor(true);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/object_interactivity.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
ey = pointer.y,
xPoints,
lines;

this.__corner = 0;
for (var i in this.oCoords) {

if (!this.isControlVisible(i)) {
Expand Down

0 comments on commit d742cc6

Please sign in to comment.