fader: dynamic knobSize
This commit is contained in:
parent
9f006ad42e
commit
5c662ed7ae
3 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- widgets
|
||||
- add `onTouch` to all container widgets
|
||||
- allow starting a traversing gesture outside a touchable widget
|
||||
- fader: make `knobSize` dynamic
|
||||
|
||||
## 1.28.5
|
||||
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@ class Canvas extends Widget {
|
|||
case 'alphaFillOn':
|
||||
case 'colorBg':
|
||||
case 'pointSize':
|
||||
case 'knobSize':
|
||||
fastdom.measure(()=>{
|
||||
this.cacheCanvasStyle()
|
||||
fastdom.mutate(()=>{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue