From 6d4126cd29b1607760a54acf381a59e48d6ab6a4 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 12 Jul 2017 21:26:47 +0200 Subject: [PATCH] =?UTF-8?q?knob:=20360=C2=B0=20pips=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/browser/js/app/widgets/sliders/knob.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/js/app/widgets/sliders/knob.js b/src/browser/js/app/widgets/sliders/knob.js index 3c7f8b91..0d952893 100644 --- a/src/browser/js/app/widgets/sliders/knob.js +++ b/src/browser/js/app/widgets/sliders/knob.js @@ -169,8 +169,8 @@ module.exports = class Knob extends _sliders_base { r2 = pipsRadius + pipsWidth / 2, a = 2 * Math.PI - this.percentToAngle(pip) - if (pip == 0) a += 1.5 * PXSCALE / pipsRadius - if (pip == 100) a -= 1.5 * PXSCALE / pipsRadius + if (pip == 0 && this.maxAngle != 360) a += 1.5 * PXSCALE / pipsRadius + if (pip == 100 && this.maxAngle != 360) a -= 1.5 * PXSCALE / pipsRadius this.ctx.moveTo(r1 * Math.cos(a) + this.width / 2, this.height / 2 - r1 * Math.sin(a)) this.ctx.lineTo(r2 * Math.cos(a) + this.width / 2, this.height / 2 - r2 * Math.sin(a))