mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-15 01:03:10 +00:00
Merge pull request #919 from Kienz/patch-1
Fix object selection with shift key - Closes issue #912
This commit is contained in:
commit
22de867310
2 changed files with 5 additions and 2 deletions
|
|
@ -479,6 +479,8 @@
|
|||
if (activeGroup.size() === 1) {
|
||||
// remove group alltogether if after removal it only contains 1 object
|
||||
this.discardActiveGroup();
|
||||
// activate last remaining object
|
||||
this.setActiveObject(activeGroup.item(0));
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -166,11 +166,12 @@
|
|||
_shouldRender: function(target, pointer) {
|
||||
var activeObject = this.getActiveGroup() || this.getActiveObject();
|
||||
|
||||
return (
|
||||
return !!(
|
||||
(target && (
|
||||
target.isMoving ||
|
||||
target !== activeObject)) ||
|
||||
(!target && activeObject) ||
|
||||
(!target && !!activeObject) ||
|
||||
(!target && !activeObject && !this._groupSelector) ||
|
||||
(pointer &&
|
||||
this._previousPointer &&
|
||||
this.selection && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue