From 3c5dae8c7bc507ad7199bf735126c621b516eecb Mon Sep 17 00:00:00 2001 From: Caitlin Hennessy Date: Wed, 20 Dec 2017 15:11:44 -0800 Subject: [PATCH] Small changes --- sim/visuals/controls/colorWheel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/visuals/controls/colorWheel.ts b/sim/visuals/controls/colorWheel.ts index 4cc7ebd0..733c0f5f 100644 --- a/sim/visuals/controls/colorWheel.ts +++ b/sim/visuals/controls/colorWheel.ts @@ -18,7 +18,7 @@ namespace pxsim.visuals { svg.setGradientColors(this.colorGradient, "black", "white"); const circle = pxsim.svg.child(this.group, "g"); - const circle2 = pxsim.svg.child(circle, "circle", + const innerCircle = pxsim.svg.child(circle, "circle", {cursor: '-webkit-grab', fill: `url(#${gc})`, r: 17, @@ -62,7 +62,7 @@ namespace pxsim.visuals { } private setColor(pt: SVGPoint, parent: SVGSVGElement, ev: MouseEvent) { - let width = 87.5; + const width = CONTROL_WIDTH; let cur = svg.cursorPoint(pt, parent, ev); let t = Math.max(0, Math.min(1, (width + this.left / this.scaleFactor - cur.x / this.scaleFactor) / width)); const state = this.state;