Skip to content

Commit 1494fe2

Browse files
committed
fix(android): edge case for modal dialogs and registry
1 parent ec9faf1 commit 1494fe2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gesturehandler/gesturehandler.android.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,10 @@ export class Manager extends ManagerBase {
558558
if (parent instanceof GestureRootView) {
559559
return parent.registry;
560560
}
561+
// we need to break if it is a modal page or we will get the wrong registry
562+
if (parent['_dialogFragment']) {
563+
break;
564+
}
561565
parent = parent.parent;
562566
}
563567

0 commit comments

Comments
 (0)