Skip to content

Commit 07bc695

Browse files
committed
fix: adjust animated index appear logic
1 parent 218e006 commit 07bc695

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ const BottomSheetBackdropComponent = ({
103103

104104
//#region effects
105105
useAnimatedReaction(
106-
() => animatedIndex.value <= disappearsOnIndex,
106+
() => !(animatedIndex.value >= appearsOnIndex),
107107
(shouldDisableTouchability, previous) => {
108108
if (shouldDisableTouchability === previous) {
109109
return;
110110
}
111111
runOnJS(handleContainerTouchability)(shouldDisableTouchability);
112112
},
113-
[disappearsOnIndex]
113+
[appearsOnIndex]
114114
);
115115
//#endregion
116116

0 commit comments

Comments
 (0)