fader/range: reuse pips offscreen canvas instead of creating a new one
This commit is contained in:
parent
5abaf7fbb3
commit
c124c3826f
1 changed files with 1 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ class Fader extends Slider {
|
|||
|
||||
drawPips() {
|
||||
|
||||
this.pips = this.canvas.cloneNode()
|
||||
this.pips = this.pips || this.canvas.cloneNode()
|
||||
this.pips.width = this.getProp('horizontal') ? this.height : this.width
|
||||
this.pips.height = !this.getProp('horizontal') ? this.height : this.width
|
||||
this.pipsTextSize = this.fontSize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue