From 3b792d24312ed8420bb4878da35b475110348c28 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 13 Aug 2025 22:21:43 +0200 Subject: [PATCH] rgb: fix long standing (presumably) issue with touchstate, affecting editor' colorpicker as well --- CHANGELOG.md | 2 ++ src/client/widgets/pads/rgb.js | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a109bdf2..4fb0837c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - firefox: `onTouch` error when the cursor goes outside the page - dropdown: label not initialized until a value is set - editor: regression (1.29.0) preventing color changes made with the color to be undoable unless validaed with the enter key + - editor: color picker interaction issue in near #000000 + - rgb: incoming values were not queued when during user interaction - client - add `title` client option diff --git a/src/client/widgets/pads/rgb.js b/src/client/widgets/pads/rgb.js index 9576814a..6e5d1369 100644 --- a/src/client/widgets/pads/rgb.js +++ b/src/client/widgets/pads/rgb.js @@ -110,9 +110,6 @@ module.exports = class Rgb extends Widget { initValue[3] = this.getProp('rangeAlpha').min } - - touchstate(this, {element: this.widget, multitouch: true, ignoreCustomBindings: true}) - if (this.getProp('spring')) { this.on('dragend', (e)=>{ @@ -124,6 +121,7 @@ module.exports = class Rgb extends Widget { } + touchstate(this, {element: this.widget, multitouch: true, ignoreCustomBindings: false}) this.hsb = {h:0,s:0,b:0}