From 04ea367e3baa7e51933e9a595da793b4c8a4aa8f Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 13 Jul 2023 05:31:26 +0000 Subject: Raise double click threshold to 400ms This should improve the situation with some touchpads. GTK4 is also using the same value. --- CHANGELOG.md | 1 + alacritty/src/input.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f12daea..0f4957ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Deprecated config option `mouse_bindings`, use `mouse.bindings` - The default colorscheme is now based on base16 classic dark - IME popup now tries to not obscure the current cursor line +- The double click threshold was raised to `400ms` ### Fixed diff --git a/alacritty/src/input.rs b/alacritty/src/input.rs index c73ae676..f43d9ec7 100644 --- a/alacritty/src/input.rs +++ b/alacritty/src/input.rs @@ -70,7 +70,7 @@ const TOUCH_SCROLL_FACTOR: f64 = 0.35; const MAX_TAP_DISTANCE: f64 = 20.; /// Threshold used for double_click/triple_click. -const CLICK_THRESHOLD: Duration = Duration::from_millis(300); +const CLICK_THRESHOLD: Duration = Duration::from_millis(400); /// Processes input from winit. /// -- cgit