Mobile: Fixes #11183: Fix new note/edit buttons only work if pressed quickly (#11185)

This commit is contained in:
Henry Heino
2024-10-11 22:04:29 +01:00
committed by GitHub
parent e3d5f0c9cf
commit 349fa426ea
@@ -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 ? (