multixy: typo in npoints fix
This commit is contained in:
parent
2408353194
commit
bbfe558353
2 changed files with 6 additions and 1 deletions
|
|
@ -6,6 +6,11 @@
|
|||
- add `onTouch` to all container widgets
|
||||
- allow starting a traversing gesture outside a touchable widget
|
||||
|
||||
## 1.28.5
|
||||
|
||||
- bug fixes
|
||||
- multixy: error when `points` is `0` (or empty array) (again)
|
||||
|
||||
## 1.28.4
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ class MultiXy extends Pad {
|
|||
|
||||
this.npoints = Array.isArray(this.getProp('points')) ? this.getProp('points').length : parseInt(this.getProp('points'))
|
||||
|
||||
if (isNaN(this.npoints) || this.points < 1) this.npoints = 1
|
||||
if (isNaN(this.npoints) || this.npoints < 1) this.npoints = 1
|
||||
|
||||
this.preventChildrenTouchState = true
|
||||
this.pads = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue