Skip to content

Commit

Permalink
Mobile: Fixes laurent22#11183: Fix new note/edit buttons only work if…
Browse files Browse the repository at this point in the history
… pressed quickly
  • Loading branch information
personalizedrefrigerator committed Oct 7, 2024
1 parent 0f23882 commit c8191b3
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 c8191b3

Please sign in to comment.