fader/range: really check if pips are ready to be drawn before drawing them
This commit is contained in:
parent
4c9eecd0af
commit
5abaf7fbb3
3 changed files with 3 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
- bug fixes
|
||||
- scripting: `setFocus` not working on iOS
|
||||
- fader/range: drawing error with `pips` enabled
|
||||
|
||||
## 1.29.0
|
||||
|
||||
|
|
|
|||
|
|
@ -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]]
|
||||
|
|
|
|||
|
|
@ -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]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue