1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

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

This commit is contained in:
Henry Heino 2024-10-11 14:04:29 -07:00 committed by GitHub
parent e3d5f0c9cf
commit 349fa426ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ? (