mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Segment#isSelected() only checks for selection state of point. We need to check _selectionState instead to mirror behaviour in #_setSelected().
This commit is contained in:
parent
d098c6e8b2
commit
6d84dc3351
1 changed files with 3 additions and 1 deletions
|
@ -208,8 +208,10 @@ var Segment = this.Segment = Base.extend({
|
|||
remove: function() {
|
||||
if (this._path) {
|
||||
this._path._segments.splice(this.getIndex(), 1);
|
||||
if (this.isSelected())
|
||||
if (this._selectionState) {
|
||||
this._path._selectedSegmentCount--;
|
||||
this._selectionState = 0;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue