Skip to content

gesture: raise the double click window to 400 ms - #3

Merged
omartelo merged 1 commit into
lichfrom
gesture-double-click-400ms
Nov 8, 2026
Merged

omartelo merged 1 commit into
lichfrom
gesture-double-click-400ms

Conversation

@omartelo

@omartelo omartelo commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The double click window in gesture was fixed at 200 ms. lich's terminal and browser pane already use 400 ms, GTK's default gtk-double-click-time, so a double click 300 ms apart worked there and failed in every Gio widget of the same window (selectable word/line selection, editor, tab bar).

This sets doubleClickDuration to 400 ms, with a comment giving the origin. No distance check, and the desktop's setting is not read.

Two cases added to TestMouseClicks: presses 300 ms apart give NumClicks 2, presses 500 ms apart give 1. The 300 ms case failed before the change (got 1, expected 2).

Test plan

  • go test ./gesture/... ./widget/... in the fork: pass
  • lich native/ with replace gioui.org pointing at this branch: go build ./... and go test ./cmd/lich-native/ pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant