Gradient Slider: fix remove thumb

This commit is contained in:
Julia Svinareva 2019-11-15 14:33:09 +03:00
parent 310033f575
commit 3c493d898b

View file

@ -394,7 +394,7 @@ define([
me.sortThumbs();
var positionY = e.pageY*Common.Utils.zoom() - me.cmpEl.offset().top;
me.isRemoveThumb = positionY > me.cmpEl.height();
me.isRemoveThumb = positionY > me.cmpEl.height() || positionY < 0;
me.setRemoveThumb(index, me.isRemoveThumb);
if (Math.abs(value-lastValue)>0.001)