Skip to content

Commit

Permalink
Raise double click threshold to 400ms (#31)
Browse files Browse the repository at this point in the history
This should improve the situation with some touchpads. GTK4 is also
using the same value.
  • Loading branch information
kchibisov authored Jul 12, 2023
1 parent 68035e5 commit cb4d79a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Unreleased
- The double click threshold value was raised to `400ms`

## 0.6.0
- Update the `smithay-client-toolkit` to `0.17.0`
- Don't use tiny-skia's default features
Expand Down
4 changes: 3 additions & 1 deletion src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ use crate::{
};

/// Time to register the next click as a double click.
const DOUBLE_CLICK_DURATION: Duration = Duration::from_millis(300);
///
/// The value is the same as the default in gtk4.
const DOUBLE_CLICK_DURATION: Duration = Duration::from_millis(400);

/// The state of the mouse input inside the decorations frame.
#[derive(Debug, Default)]
Expand Down

0 comments on commit cb4d79a

Please sign in to comment.