Skip to content

Commit fe574e3

Browse files
committed
🤖 fix: extend horizontal slider hit area beyond thin bar
1 parent 13c12b1 commit fe574e3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/browser/components/RightSidebar/ThresholdSlider.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,14 @@ export const HorizontalThresholdSlider: React.FC<HorizontalThresholdSliderProps>
109109
return (
110110
<div
111111
ref={containerRef}
112-
className="absolute inset-0 z-10 cursor-ew-resize"
112+
className="absolute z-10 cursor-ew-resize"
113+
style={{
114+
// Extend hit area beyond the thin bar for easier clicking
115+
left: 0,
116+
right: 0,
117+
top: -8,
118+
bottom: -8,
119+
}}
113120
onMouseDown={handleMouseDown}
114121
title={title}
115122
>

0 commit comments

Comments
 (0)