Skip to content

Commit

Permalink
added event firing for shortcuts (#3285)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Sep 25, 2016
1 parent bda846b commit 06a4207
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,14 +1022,17 @@
// active group does not check sub targets like normal groups.
// if active group just exits.
if (activeGroup && !skipGroup && this._checkTarget(pointer, activeGroup)) {
this._fireOverOutEvents(activeGroup, e);
return activeGroup;
}
// if we hit the corner of an activeObject, let's return that.
if (activeObject && activeObject._findTargetCorner(pointer)) {
this._fireOverOutEvents(activeObject, e);
return activeObject;
}
if (activeObject && this._checkTarget(pointer, activeObject)) {
if (!this.preserveObjectStacking) {
this._fireOverOutEvents(activeObject, e);
return activeObject;
}
else {
Expand Down

0 comments on commit 06a4207

Please sign in to comment.