Skip to content

Commit

Permalink
feat: allow view scrollble to over-drag sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Jun 27, 2021
1 parent 2943f09 commit 2c2ca4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
*/
if (enableOverDrag) {
if (
type === GESTURE_SOURCE.HANDLE &&
(type === GESTURE_SOURCE.HANDLE ||
animatedScrollableType.value === SCROLLABLE_TYPE.VIEW) &&
draggedPosition < highestSnapPoint
) {
const resistedPosition =
Expand Down

0 comments on commit 2c2ca4e

Please sign in to comment.