diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-07-13 05:31:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-13 05:31:26 +0000 |
commit | 04ea367e3baa7e51933e9a595da793b4c8a4aa8f (patch) | |
tree | 1be4032fc48d6cb68216460004b37c0114e5f0df | |
parent | da7d7c00e415b313e143e935ee3aba7184eeb3f7 (diff) | |
download | alacritty-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.md | 1 | ||||
-rw-r--r-- | alacritty/src/input.rs | 2 |
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. /// |