From 626108d5b4aad488992f9d3047acfb6c0e1830b6 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 15 Sep 2023 04:51:14 +0100 Subject: [PATCH] prevent the pan responder from intercepting clicks / taps on web platforms --- src/components/MapView/responder/index.android.ts | 8 ++++++++ src/components/MapView/responder/index.ts | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/components/MapView/responder/index.android.ts diff --git a/src/components/MapView/responder/index.android.ts b/src/components/MapView/responder/index.android.ts new file mode 100644 index 000000000000..a0fce71d8ef5 --- /dev/null +++ b/src/components/MapView/responder/index.android.ts @@ -0,0 +1,8 @@ +import {PanResponder} from 'react-native'; + +const responder = PanResponder.create({ + onStartShouldSetPanResponder: () => true, + onPanResponderTerminationRequest: () => false, +}); + +export default responder; diff --git a/src/components/MapView/responder/index.ts b/src/components/MapView/responder/index.ts index a0fce71d8ef5..422d6c1b4963 100644 --- a/src/components/MapView/responder/index.ts +++ b/src/components/MapView/responder/index.ts @@ -1,7 +1,7 @@ import {PanResponder} from 'react-native'; const responder = PanResponder.create({ - onStartShouldSetPanResponder: () => true, + onMoveShouldSetPanResponder: () => true, onPanResponderTerminationRequest: () => false, });