mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Fix issue with a path not being selected when one of its segment is selected directly.
This commit is contained in:
parent
ca16e43c1f
commit
fe416e294d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ var Segment = this.Segment = Base.extend({
|
|||
_setSelected: function(point, selected) {
|
||||
var path = this._path,
|
||||
selected = !!selected, // convert to boolean
|
||||
state = this._selectionState,
|
||||
state = this._selectionState || 0,
|
||||
// For performance reasons use array indices to access the various
|
||||
// selection states: 0 = point, 1 = handleIn, 2 = handleOut
|
||||
selection = [
|
||||
|
|
Loading…
Reference in a new issue