mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Revert a recent change in selection handling.
This commit is contained in:
parent
69dc8be629
commit
b22ff5ecca
1 changed files with 5 additions and 2 deletions
|
@ -678,8 +678,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
|||
_updateSelection: function(segment, oldState, newState) {
|
||||
segment._selectionState = newState;
|
||||
var total = this._selectedSegmentState += newState - oldState;
|
||||
// Set this path as selected in case we have selected segments.
|
||||
this.setSelected(total > 0);
|
||||
// Set this path as selected in case we have selected segments. Do not
|
||||
// unselect if we're down to 0, as the path itself can still remain
|
||||
// selected even when empty.
|
||||
if (total > 0)
|
||||
this.setSelected(true);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue