From a893fc0ca2d5c205c394e8f149b48e8f2007d181 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 3 Jan 2023 01:21:40 +0900 Subject: Clicks with different x coordinates shouldn't be seen as a double-click --- src/tui/tui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tui/tui.go') diff --git a/src/tui/tui.go b/src/tui/tui.go index a9368c73..063c4e6f 100644 --- a/src/tui/tui.go +++ b/src/tui/tui.go @@ -431,7 +431,7 @@ type FullscreenRenderer struct { mouse bool forceBlack bool prevDownTime time.Time - clickY []int + clicks [][2]int } func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Renderer { @@ -440,7 +440,7 @@ func NewFullscreenRenderer(theme *ColorTheme, forceBlack bool, mouse bool) Rende mouse: mouse, forceBlack: forceBlack, prevDownTime: time.Unix(0, 0), - clickY: []int{}} + clicks: [][2]int{}} return r } -- cgit v1.2.3