rgb: fix long standing (presumably) issue with touchstate, affecting editor' colorpicker as well

This commit is contained in:
jean-emmanuel 2025-08-13 22:21:43 +02:00
parent c450c6133c
commit 3b792d2431
2 changed files with 3 additions and 3 deletions

View file

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