fix: SlideToConfirm gesture blocked by modal backdrop - restructure all payment modals

This commit is contained in:
Nemo
2026-03-24 13:09:53 +08:00
parent 065844b579
commit 024bb06205
4 changed files with 21 additions and 14 deletions

View File

@@ -22,8 +22,10 @@ export function SlideToConfirm({ label = 'Slide to confirm', color = '#059669',
const panResponder = useRef(
PanResponder.create({
onStartShouldSetPanResponder: () => !disabled && !done,
onMoveShouldSetPanResponder: () => !disabled && !done,
onStartShouldSetPanResponder: () => !disabled && !done,
onStartShouldSetPanResponderCapture: () => !disabled && !done,
onMoveShouldSetPanResponder: () => !disabled && !done,
onMoveShouldSetPanResponderCapture: () => !disabled && !done,
onPanResponderMove: (_, gs) => {
const x = Math.max(0, Math.min(gs.dx, maxX));
pan.setValue(x);