Skip to content

Commit

Permalink
fix(lemon-ui): Drag slider handle following slider track click (#20102)
Browse files Browse the repository at this point in the history
* fix(lemon-ui): Drag slider following track click

* Fix typo
  • Loading branch information
Twixes authored Feb 2, 2024
1 parent 06cea34 commit addea72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/src/lib/lemon-ui/LemonSlider/LemonSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}}
>
<div className="w-full bg-border rounded-full h-1" />
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
<ol>
<li>
First and foremost you can <b>try again</b>. We recommended you wait a moment before
doing so.
First and foremost you can <b>try again</b>. We recommend you wait a moment before doing
so.
</li>
<li>
<Link
Expand Down

0 comments on commit addea72

Please sign in to comment.