From 1a564f8458e7229c5f9891684c26468bac9e056a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 10 Mar 2025 09:05:01 +0100 Subject: [PATCH] xy/multixy: change axisLock choices order --- src/client/widgets/pads/multixy.js | 4 ++-- src/client/widgets/pads/xy.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/widgets/pads/multixy.js b/src/client/widgets/pads/multixy.js index 9ccd18a6..624706f2 100644 --- a/src/client/widgets/pads/multixy.js +++ b/src/client/widgets/pads/multixy.js @@ -40,9 +40,9 @@ module.exports = class MultiXy extends Pad { rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis'}, logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale.'}, logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale.'}, - axisLock: {type: 'string', value: '', choices: ['', 'auto', 'x', 'y'], help: [ + axisLock: {type: 'string', value: '', choices: ['', 'x', 'y', 'auto'], help: [ 'Restrict movements to one of the axes only.', - 'When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.' + 'When left empty, holding `Shift` while dragging will lock the pad according the first movement. `auto` will do the opposite.' ]}, doubleTap: {type: 'boolean|string', value: false, help: [ 'Set to `true` to make the fader reset to its default value when receiving a double tap.', diff --git a/src/client/widgets/pads/xy.js b/src/client/widgets/pads/xy.js index 7a689f08..bc0a6888 100644 --- a/src/client/widgets/pads/xy.js +++ b/src/client/widgets/pads/xy.js @@ -32,9 +32,9 @@ module.exports = class Xy extends Pad { rangeY: {type: 'object', value: {min:0,max:1}, help: 'Defines the min and max values for the y axis'}, logScaleX: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the x axis. Set to `-1` for exponential scale.'}, logScaleY: {type: 'boolean|number', value: false, help: 'Set to `true` to use logarithmic scale for the y axis. Set to `-1` for exponential scale.'}, - axisLock: {type: 'string', value: '', choices: ['', 'auto', 'x', 'y'], help: [ + axisLock: {type: 'string', value: '', choices: ['', 'x', 'y', 'auto'], help: [ 'Restrict movements to one of the axes only unless `Shift` is held.', - 'When left to the default value, holding `Shift` while dragging will lock the pad according the first movement.' + 'When left empty, holding `Shift` while dragging will lock the pad according the first movement. `auto` will do the opposite.' ]}, doubleTap: {type: 'boolean|string', value: false, help: [ 'Set to `true` to make the fader reset to its default value when receiving a double tap.',