mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -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) {
|
_updateSelection: function(segment, oldState, newState) {
|
||||||
segment._selectionState = newState;
|
segment._selectionState = newState;
|
||||||
var total = this._selectedSegmentState += newState - oldState;
|
var total = this._selectedSegmentState += newState - oldState;
|
||||||
// Set this path as selected in case we have selected segments.
|
// Set this path as selected in case we have selected segments. Do not
|
||||||
this.setSelected(total > 0);
|
// 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