From 848dd5fd2cd40da7629e1e6980fd6d6c64618030 Mon Sep 17 00:00:00 2001 From: liang wang Date: Thu, 3 Mar 2016 19:54:52 +0800 Subject: [PATCH] bugfix: mismatch formula the 'second term' interpolation percentages indicator doesn't take the path of 'second term ' curve path. --- components/sections/control/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sections/control/index.js b/components/sections/control/index.js index 245febd5..7a75e1f2 100644 --- a/components/sections/control/index.js +++ b/components/sections/control/index.js @@ -96,7 +96,7 @@ var Control = React.createClass({ this.drawLerpBox(api, dim, pad, p); var t = (p.x-pad)/fwh; this.drawLerpPoint(api, (1-t)*(1-t)*(1-t), pad, fwh, p); - this.drawLerpPoint(api, 2*(1-t)*(1-t)*(t), pad, fwh, p); + this.drawLerpPoint(api, 3*(1-t)*(1-t)*(t), pad, fwh, p); this.drawLerpPoint(api, 3*(1-t)*(t)*(t), pad, fwh, p); this.drawLerpPoint(api, (t)*(t)*(t), pad, fwh, p); }