From db6f02084d611ace079b673c9bbc5886d18b894a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 16 Jul 2025 18:01:08 -0700 Subject: [PATCH] input: halve long press input duration people were saying long press was too long Fixes: https://github.com/damus-io/notedeck/issues/981 --- crates/notedeck_chrome/src/setup.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/notedeck_chrome/src/setup.rs b/crates/notedeck_chrome/src/setup.rs index 9b5b0bbd..858efdff 100644 --- a/crates/notedeck_chrome/src/setup.rs +++ b/crates/notedeck_chrome/src/setup.rs @@ -45,6 +45,9 @@ pub fn setup_cc(ctx: &egui::Context, is_mobile: bool) { egui_extras::install_image_loaders(ctx); + ctx.options_mut(|o| { + o.input_options.max_click_duration = 0.4; + }); ctx.all_styles_mut(|style| theme::add_custom_style(is_mobile, style)); }