xy: fix typo causing a perf issue
This commit is contained in:
parent
2499fafabb
commit
f44a90870e
4 changed files with 5 additions and 4 deletions
|
|
@ -3,7 +3,8 @@
|
|||
## 0.41.6
|
||||
|
||||
- bug fixes
|
||||
- keys: binding conflict with editor
|
||||
- keys: binding conflict with editor
|
||||
- xy: drawing performance issue
|
||||
|
||||
## 0.41.5
|
||||
|
||||
|
|
|
|||
|
|
@ -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