From 3c493d898b7b718fde788b032ab15fe229af96c6 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Fri, 15 Nov 2019 14:33:09 +0300 Subject: [PATCH] Gradient Slider: fix remove thumb --- 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 14e9717ea..00e54d0d0 100644 --- a/apps/common/main/lib/component/Slider.js +++ b/apps/common/main/lib/component/Slider.js @@ -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)