fader/range: reuse pips offscreen canvas instead of creating a new one

This commit is contained in:
jean-emmanuel 2025-04-20 10:35:04 +02:00
parent 5abaf7fbb3
commit c124c3826f

View file

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