Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/react-native-ui-lib/src/components/dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ const Dialog = (props: DialogProps, ref: ForwardedRef<DialogImperativeMethods>)
};

const panGesture = Gesture.Pan()
// MOBAPP-2994: require a deliberate drag before the pan engages. Without this, on Android/Fabric
// the residual touch stream from a gesture-handler trigger (e.g. List.Item's TapGestureHandler,
// which fires onPress on END while the touch is still settling) leaks into this freshly-mounted
// pan and drives `visibility` mid-open, interrupting the open spring so the sheet rests part-way.
// A plain touchable trigger (Button) lifts cleanly before the modal mounts and is unaffected.
.minDistance(10)
.onStart(event => {
initialTranslation.value =
getTranslationReverseInterpolation(isVertical ? event.translationY : event.translationX) - visibility.value;
Expand Down
Loading