From 45a3afb1cae9c95faf97d3fc54f265afe1ac906f Mon Sep 17 00:00:00 2001 From: OVSharova Date: Tue, 17 Aug 2021 15:13:10 +0300 Subject: [PATCH] Fix centers --- apps/common/main/lib/component/Slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/Slider.js b/apps/common/main/lib/component/Slider.js index 4b2ab552b..a722b8c2c 100644 --- a/apps/common/main/lib/component/Slider.js +++ b/apps/common/main/lib/component/Slider.js @@ -351,7 +351,7 @@ define([ return (0.01 * me.width * position + me.cmpEl.offset().left + me._dragstart)/Common.Utils.zoom(); }; - me.centers = [getX(50)]; + me.centers = []; _.each(me.thumbs, function (thumb, indexT) { if ((indexT != index) && (n != thumb.position)) { me.centers.push(getX((thumb.position - n) / 2 + n));