From 70fe73631452b61305eed2e2366a0caff5b7b720 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 27 Feb 2025 15:51:04 +0100 Subject: [PATCH] fader: touchZone wrong value name --- src/client/widgets/sliders/fader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.js index d7d6870f..50d89cf6 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.js @@ -30,7 +30,7 @@ class Fader extends Slider { }, class_specific: { snap: {type: 'boolean', value: false, help: 'By default, dragging the widget will modify it\'s value starting from its last value. Setting this to `true` will make it snap directly to the mouse/touch position'}, - touchZone: {type: 'string', value: 'any', choices: ['any', 'knob', 'gauge'], help: [ + touchZone: {type: 'string', value: 'any', choices: ['all', 'knob', 'gauge'], help: [ 'Restrict interaction to a part of the widget:', '- `all`: touching the widget anywhere will start an interaction', '- `knob`: touching the knob will start an interaction', @@ -121,7 +121,7 @@ class Fader extends Slider { design = this.getProp('design'), horizontal = this.getProp('horizontal') - if (zone == 'any' || design == 'compact') return true + if (zone == 'all' || design == 'compact') return true var x = e.offsetX, y = e.offsetY,