mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-18 11:05:16 +00:00
Make sure two consecutive double clicks require four clicks
This commit is contained in:
parent
a893fc0ca2
commit
ec471a5bc2
@ -591,6 +591,9 @@ func (r *LightRenderer) mouseSequence(sz *int) Event {
|
||||
if len(r.clicks) > 1 && r.clicks[0][0] == r.clicks[1][0] && r.clicks[0][1] == r.clicks[1][1] &&
|
||||
time.Since(r.prevDownTime) < doubleClickDuration {
|
||||
double = true
|
||||
if double {
|
||||
r.clicks = [][2]int{}
|
||||
}
|
||||
}
|
||||
}
|
||||
return Event{Mouse, 0, &MouseEvent{y, x, 0, left, down, double, mod}}
|
||||
|
Loading…
Reference in New Issue
Block a user