Skip to content
Myr

Make sure two consecutive double clicks require four clicks

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent a893fc0 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:src/tui/light.go+3 added
589 unmodified lines
590 } else {591 if len(r.clicks) > 1 && r.clicks[0][0] == r.clicks[1][0] && r.clicks[0][1] == r.clicks[1][1] &&592 time.Since(r.prevDownTime) < doubleClickDuration {593 double = true594 if double {595 r.clicks = [][2]int{}596 }597 }598 }599 return Event{Mouse, 0, &MouseEvent{y, x, 0, left, down, double, mod}}600}
434 unmodified lines