From 04959b72d326cbde6494ecb3c011f2bb4c12e1b1 Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Thu, 30 May 2024 12:56:23 +0100 Subject: [PATCH] fix: slider when do re-balance --- src/components/FancySlider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/FancySlider.tsx b/src/components/FancySlider.tsx index b3152fd03..abc13d190 100644 --- a/src/components/FancySlider.tsx +++ b/src/components/FancySlider.tsx @@ -179,6 +179,7 @@ const FancySlider = ({ active.current = false; handlePanEnd(); }); + return; } if (pan.x._value < snapPointX && pan.x._value >= snapPointX * 0.65) { @@ -191,8 +192,8 @@ const FancySlider = ({ active.current = false; handlePanEnd(); }); + return; } - return; } active.current = false;