Skip to content

Commit

Permalink
Mobile: Fixes #11183: Fix new note/edit buttons only work if pressed …
Browse files Browse the repository at this point in the history
…quickly (#11185)
  • Loading branch information
personalizedrefrigerator authored Oct 11, 2024
1 parent e3d5f0c commit 349fa42
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? (
Expand Down

0 comments on commit 349fa42

Please sign in to comment.