Bug 52187
This commit is contained in:
parent
8c8c3c3d0d
commit
2001f841f0
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue