multixy: typo in npoints fix

This commit is contained in:
jean-emmanuel 2025-03-22 15:01:20 +01:00
parent 2408353194
commit bbfe558353
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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 = []