mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-03 16:53:53 -04: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) {
|
_setSelected: function(point, selected) {
|
||||||
var path = this._path,
|
var path = this._path,
|
||||||
selected = !!selected, // convert to boolean
|
selected = !!selected, // convert to boolean
|
||||||
state = this._selectionState,
|
state = this._selectionState || 0,
|
||||||
// For performance reasons use array indices to access the various
|
// For performance reasons use array indices to access the various
|
||||||
// selection states: 0 = point, 1 = handleIn, 2 = handleOut
|
// selection states: 0 = point, 1 = handleIn, 2 = handleOut
|
||||||
selection = [
|
selection = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue