We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf7b47f commit e4347cfCopy full SHA for e4347cf
package/src/components/ProgressControl/WaveProgressBar.tsx
@@ -45,6 +45,12 @@ const WAVEFORM_WIDTH = 2;
45
const WAVEFORM_GAP = 2;
46
const WAVE_MAX_HEIGHT = 20;
47
const WAVE_MIN_HEIGHT = 2;
48
+const DRAG_HIT_SLOP = {
49
+ bottom: 12,
50
+ left: 12,
51
+ right: 12,
52
+ top: 12,
53
+};
54
55
const clampProgress = (progress: number) => {
56
'worklet';
@@ -141,6 +147,7 @@ export const WaveProgressBar = React.memo(
141
147
const pan = useMemo(
142
148
() =>
143
149
Gesture.Pan()
150
+ .hitSlop(DRAG_HIT_SLOP)
144
151
.maxPointers(1)
145
152
.onStart(() => {
146
153
const nextProgress = clampProgress(visualProgress.value);
0 commit comments