From addea72b8a376c273ac37a1340ee8830e073f860 Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Fri, 2 Feb 2024 22:31:47 +0100 Subject: [PATCH] fix(lemon-ui): Drag slider handle following slider track click (#20102) * fix(lemon-ui): Drag slider following track click * Fix typo --- frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx | 2 ++ frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx b/frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx index 5d24481c669b5..201c66998e23a 100644 --- a/frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx +++ b/frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx @@ -73,6 +73,8 @@ export function LemonSlider({ value = 0, onChange, min, max, step = 1, className newValue = Math.round(newValue / step) * step // Adjusted to step } onChange?.(newValue) + movementStartValueWithX.current = [newValue, e.clientX] + setDragging(true) }} >
diff --git a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx index c3bf0af57da3c..3d301dd7b882a 100644 --- a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx +++ b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx @@ -163,8 +163,8 @@ export function InsightErrorState({ excludeDetail, title, queryId }: InsightErro We apologize for this unexpected situation. There are a couple of things you can do:
  1. - First and foremost you can try again. We recommended you wait a moment before - doing so. + First and foremost you can try again. We recommend you wait a moment before doing + so.