From 9f890319a4890227f0abeebfc6dd762063e54c52 Mon Sep 17 00:00:00 2001 From: Gray Lewis Date: Wed, 11 Oct 2023 18:14:43 +0200 Subject: [PATCH 1/4] UserCurrentLocationButton onPress fix --- src/components/UserCurrentLocationButton.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/UserCurrentLocationButton.js b/src/components/UserCurrentLocationButton.js index 9ba74ac6c426..85f91e7e71e8 100644 --- a/src/components/UserCurrentLocationButton.js +++ b/src/components/UserCurrentLocationButton.js @@ -88,6 +88,8 @@ function UserCurrentLocationButton({onLocationFetched, onLocationError, onClick, onPress={getUserLocation} accessibilityLabel={translate('location.useCurrent')} disabled={isDisabled} + onMouseDown={e => e.preventDefault()} + onTouchStart={e => e.preventDefault()} > Date: Wed, 11 Oct 2023 18:23:23 +0200 Subject: [PATCH 2/4] Revert "UserCurrentLocationButton onPress fix" This reverts commit 9f890319a4890227f0abeebfc6dd762063e54c52. Reverting --- src/components/UserCurrentLocationButton.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/UserCurrentLocationButton.js b/src/components/UserCurrentLocationButton.js index 85f91e7e71e8..9ba74ac6c426 100644 --- a/src/components/UserCurrentLocationButton.js +++ b/src/components/UserCurrentLocationButton.js @@ -88,8 +88,6 @@ function UserCurrentLocationButton({onLocationFetched, onLocationError, onClick, onPress={getUserLocation} accessibilityLabel={translate('location.useCurrent')} disabled={isDisabled} - onMouseDown={e => e.preventDefault()} - onTouchStart={e => e.preventDefault()} > Date: Wed, 11 Oct 2023 18:26:07 +0200 Subject: [PATCH 3/4] UserCurrentLocationButton onClick fixed --- src/components/UserCurrentLocationButton.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/UserCurrentLocationButton.js b/src/components/UserCurrentLocationButton.js index 9ba74ac6c426..85f91e7e71e8 100644 --- a/src/components/UserCurrentLocationButton.js +++ b/src/components/UserCurrentLocationButton.js @@ -88,6 +88,8 @@ function UserCurrentLocationButton({onLocationFetched, onLocationError, onClick, onPress={getUserLocation} accessibilityLabel={translate('location.useCurrent')} disabled={isDisabled} + onMouseDown={e => e.preventDefault()} + onTouchStart={e => e.preventDefault()} > Date: Wed, 11 Oct 2023 21:40:54 +0200 Subject: [PATCH 4/4] linted --- src/components/UserCurrentLocationButton.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserCurrentLocationButton.js b/src/components/UserCurrentLocationButton.js index 85f91e7e71e8..fa22eb602886 100644 --- a/src/components/UserCurrentLocationButton.js +++ b/src/components/UserCurrentLocationButton.js @@ -88,8 +88,8 @@ function UserCurrentLocationButton({onLocationFetched, onLocationError, onClick, onPress={getUserLocation} accessibilityLabel={translate('location.useCurrent')} disabled={isDisabled} - onMouseDown={e => e.preventDefault()} - onTouchStart={e => e.preventDefault()} + onMouseDown={(e) => e.preventDefault()} + onTouchStart={(e) => e.preventDefault()} >