Bug 52187

This commit is contained in:
OVSharova 2021-10-01 08:17:43 +03:00
parent 8c8c3c3d0d
commit 2001f841f0

View file

@ -387,13 +387,13 @@ define([
pos = Math.max(0, Math.min(100, position)), pos = Math.max(0, Math.min(100, position)),
value = pos/me.delta + me.minValue; value = pos/me.delta + me.minValue;
if (me.isRemoveThumb) { if ((me.isRemoveThumb) && (me.thumbs.length < 3)) {
if (me.thumbs.length < 3) { /*if (me.thumbs.length < 3) {
$(document).off('mouseup', me.binding.onMouseUp); $(document).off('mouseup', me.binding.onMouseUp);
$(document).off('mousemove', me.binding.onMouseMove); $(document).off('mousemove', me.binding.onMouseMove);
me._dragstart = undefined; me._dragstart = undefined;
return; return;
} }*/
me.trigger('removethumb', me, _.findIndex(me.thumbs, {index: index})); me.trigger('removethumb', me, _.findIndex(me.thumbs, {index: index}));
me.trigger('change', me, value, lastValue); me.trigger('change', me, value, lastValue);
me.trigger('changecomplete', me, value, lastValue); me.trigger('changecomplete', me, value, lastValue);