Fix centers

This commit is contained in:
OVSharova 2021-08-17 15:13:10 +03:00
parent 56288ced09
commit 45a3afb1ca

View file

@ -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));