From 2c2ca4ec17587689c2e38fcb0aad87a172251b55 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Sun, 27 Jun 2021 11:02:19 +0100 Subject: [PATCH] feat: allow view scrollble to over-drag sheet --- src/components/bottomSheet/BottomSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/bottomSheet/BottomSheet.tsx b/src/components/bottomSheet/BottomSheet.tsx index 486809e12..ac6f14c53 100644 --- a/src/components/bottomSheet/BottomSheet.tsx +++ b/src/components/bottomSheet/BottomSheet.tsx @@ -1037,7 +1037,8 @@ const BottomSheetComponent = forwardRef( */ if (enableOverDrag) { if ( - type === GESTURE_SOURCE.HANDLE && + (type === GESTURE_SOURCE.HANDLE || + animatedScrollableType.value === SCROLLABLE_TYPE.VIEW) && draggedPosition < highestSnapPoint ) { const resistedPosition =