xy: fix typo causing a perf issue
This commit is contained in:
parent
96845f4c9a
commit
fd0dbcc1fc
4 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,7 @@ module.exports = class _fake_fader extends Fader {
|
|||
|
||||
super(options)
|
||||
|
||||
if (arguments.cancelDraw) this.noDraw = true
|
||||
if (options.cancelDraw) this.batchDraw = ()=>{}
|
||||
}
|
||||
|
||||
sendValue() {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ module.exports = class Encoder extends Widget {
|
|||
pips:false,
|
||||
}, parent: this})
|
||||
|
||||
this.knob.noDraw = true
|
||||
this.knob.batchDraw = ()=>{}
|
||||
|
||||
this.display = new DisplayKnob({props:{
|
||||
label:false,
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ class Slider extends Canvas {
|
|||
|
||||
if (!options.dragged) this.percent = this.valueToPercent(this.value)
|
||||
|
||||
if (!this.noDraw) this.batchDraw()
|
||||
this.batchDraw()
|
||||
|
||||
this.showValue()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue