fader: dynamic knobSize

This commit is contained in:
jean-emmanuel 2025-03-23 12:12:30 +01:00
parent 9f006ad42e
commit 5c662ed7ae
3 changed files with 5 additions and 1 deletions

View file

@ -198,6 +198,7 @@ class Canvas extends Widget {
case 'alphaFillOn':
case 'colorBg':
case 'pointSize':
case 'knobSize':
fastdom.measure(()=>{
this.cacheCanvasStyle()
fastdom.mutate(()=>{

View file

@ -291,6 +291,7 @@ class Slider extends Canvas {
if (this.getProp('spring') && !this.touched) this.setValue(this.getSpringValue(), {...options})
return
case 'colorKnob':
case 'knobSize':
this.setCssVariables()
return
@ -312,7 +313,8 @@ Slider.dynamicProps = Slider.prototype.constructor.dynamicProps
'spring',
'sensitivity',
'default',
'colorKnob'
'colorKnob',
'knobSize'
])
module.exports = Slider