Skip to content

Commit bc709a0

Browse files
committed
fix: filter out taps on drag
1 parent 60657fb commit bc709a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/BottomSheet.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ export const BottomSheet = React.forwardRef<
411411
return memo
412412
}
413413

414+
// Filter out taps
415+
if (tap) {
416+
return memo
417+
}
418+
414419
const rawY = memo + my
415420
const predictedDistance = my * velocity
416421
const predictedY = Math.max(

0 commit comments

Comments
 (0)