xy: fix typo causing a perf issue

This commit is contained in:
jean-emmanuel 2019-03-04 11:13:09 +01:00
parent 2499fafabb
commit f44a90870e
4 changed files with 5 additions and 4 deletions

View file

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

View file

@ -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() {

View file

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

View file

@ -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()