Skip to content

Commit

Permalink
Merge pull request #2503 from asturur/obj.selectab
Browse files Browse the repository at this point in the history
Fix object selectable with shift click and itext mouse cursor click.
  • Loading branch information
kangax committed Sep 29, 2015
2 parents 33cdaa1 + 6426a02 commit 9549631
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/canvas.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,6 @@
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
2 changes: 1 addition & 1 deletion src/mixins/canvas_grouping.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
_shouldGroup: function(e, target) {
var activeObject = this.getActiveObject();
return e.shiftKey &&
return e.shiftKey && target && target.selectable &&
(this.getActiveGroup() || (activeObject && activeObject !== target))
&& this.selection;
},
Expand Down

0 comments on commit 9549631

Please sign in to comment.