aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-07-13 05:31:26 +0000
committerGitHub <noreply@github.com>2023-07-13 05:31:26 +0000
commit04ea367e3baa7e51933e9a595da793b4c8a4aa8f (patch)
tree1be4032fc48d6cb68216460004b37c0114e5f0df
parentda7d7c00e415b313e143e935ee3aba7184eeb3f7 (diff)
downloadalacritty-04ea367e3baa7e51933e9a595da793b4c8a4aa8f.tar.gz
alacritty-04ea367e3baa7e51933e9a595da793b4c8a4aa8f.zip
Raise double click threshold to 400ms
This should improve the situation with some touchpads. GTK4 is also using the same value.
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty/src/input.rs2
2 files changed, 2 insertions, 1 deletions
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.
///