Skip to content

Commit

Permalink
Merge pull request #2466 from asturur/fix-checkTarget
Browse files Browse the repository at this point in the history
check for obj.selectable
  • Loading branch information
kangax committed Sep 3, 2015
2 parents 7a02ec7 + 48529ff commit 941f97d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@
if (obj &&
obj.visible &&
obj.evented &&
obj.selectable &&
this.containsPoint(e, obj)){
if ((this.perPixelTargetFind || obj.perPixelTargetFind) && !obj.isEditing) {
var isTransparent = this.isTargetTransparent(obj, pointer.x, pointer.y);
Expand Down

0 comments on commit 941f97d

Please sign in to comment.