mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 15:18:29 +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] &&
|
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 {
|
time.Since(r.prevDownTime) < doubleClickDuration {
|
||||||
double = true
|
double = true
|
||||||
|
if double {
|
||||||
|
r.clicks = [][2]int{}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Event{Mouse, 0, &MouseEvent{y, x, 0, left, down, double, mod}}
|
return Event{Mouse, 0, &MouseEvent{y, x, 0, left, down, double, mod}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user