From 20d29f811197b774f4f0a53fbae698cafcc98d12 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 14 Nov 2024 13:32:22 +0100 Subject: [PATCH] multixy: fix default props when points are named --- CHANGELOG.md | 3 +++ src/client/widgets/pads/multixy.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 433eb3fb..375db8e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.27.2 +- bug fixes + - multixy: `default` not applied when points are named + - client - show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen) - hide console in read-only mode diff --git a/src/client/widgets/pads/multixy.js b/src/client/widgets/pads/multixy.js index 64a600e5..3e2345f2 100644 --- a/src/client/widgets/pads/multixy.js +++ b/src/client/widgets/pads/multixy.js @@ -74,7 +74,7 @@ module.exports = class MultiXy extends Pad { snap:this.getProp('snap'), spring:this.getProp('spring'), ephemeral:this.getProp('ephemeral'), - default:this.getProp('default').length === this.getProp('points') * 2 ? [this.getProp('default')[i*2], this.getProp('default')[i*2 + 1]] : '', + default:this.getProp('default').length === this.npoints * 2 ? [this.getProp('default')[i*2], this.getProp('default')[i*2 + 1]] : '', rangeX:this.getProp('rangeX'), rangeY:this.getProp('rangeY'), decimals:this.getProp('decimals'),