fader: fix very weird glitch when initial zoom != 1

This commit is contained in:
bordun 2017-09-15 08:46:11 +02:00
parent 92903c45bc
commit 02c01aa80c

View file

@ -239,8 +239,8 @@ module.exports = class Fader extends _sliders_base {
this.ctx.beginPath()
this.ctx.globalAlpha = 1
this.ctx.strokeStyle = this.colors.bg
this.ctx.moveTo(m, this.margin * PXSCALE - PXSCALE)
this.ctx.lineTo(m, height - this.margin * PXSCALE + PXSCALE)
this.ctx.moveTo(m, this.margin * PXSCALE - 1 * PXSCALE)
this.ctx.lineTo(m, height - this.margin * PXSCALE + 1 * PXSCALE)
this.ctx.stroke()
this.ctx.lineWidth = 2 * PXSCALE