diff --git a/CHANGELOG.md b/CHANGELOG.md index 04d235b1..b7c7c52d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - bug fixes - scripting: `setFocus` not working on iOS + - fader/range: drawing error with `pips` enabled ## 1.29.0 diff --git a/src/client/widgets/sliders/fader.js b/src/client/widgets/sliders/fader.js index 16860286..9798dceb 100644 --- a/src/client/widgets/sliders/fader.js +++ b/src/client/widgets/sliders/fader.js @@ -390,7 +390,7 @@ class Fader extends Slider { this.shouldDrawPips = false } - if (this.getProp('pips') && !compact) { + if (this.pips) { this.ctx.globalAlpha = 1 this.ctx.drawImage(this.pips, 0, 0) if (!compact) this.clearRect = [this.clearRect, [m + knobWidth / 2, 0, 12 * PXSCALE + this.pipsTextSize, height]] diff --git a/src/client/widgets/sliders/range.js b/src/client/widgets/sliders/range.js index 19c65d58..7c76d0a9 100644 --- a/src/client/widgets/sliders/range.js +++ b/src/client/widgets/sliders/range.js @@ -389,7 +389,7 @@ class Range extends Fader { this.shouldDrawPips = false } - if (this.getProp('pips')) { + if (this.pips) { this.ctx.globalAlpha = 1 this.ctx.drawImage(this.pips, 0, 0) if (!compact) this.clearRect = [this.clearRect, [m + knobWidth / 2, 0, 12 * PXSCALE + this.pipsTextSize, height]]