From 349fa426ea1d2695b36d98235a3ec7405428cfac Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:04:29 -0700 Subject: [PATCH] Mobile: Fixes #11183: Fix new note/edit buttons only work if pressed quickly (#11185) --- .../app-mobile/components/buttons/FloatingActionButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/app-mobile/components/buttons/FloatingActionButton.tsx b/packages/app-mobile/components/buttons/FloatingActionButton.tsx index 6bae3b8a7..e05e62817 100644 --- a/packages/app-mobile/components/buttons/FloatingActionButton.tsx +++ b/packages/app-mobile/components/buttons/FloatingActionButton.tsx @@ -100,6 +100,9 @@ const FloatingActionButton = (props: ActionButtonProps) => { onStateChange={onMenuToggled} actions={actions} onPress={props.mainButton?.onPress ?? defaultOnPress} + // The long press delay is too short by default (and we don't use the long press event). See https://github.com/laurent22/joplin/issues/11183. + // Increase to a large value: + delayLongPress={10_000} visible={true} />; const mainMenu = isWeb ? (