From 3ac0b09880c15197e6aa3b6d3efaa974892093e2 Mon Sep 17 00:00:00 2001 From: MATSUDA Takashi Date: Mon, 11 Mar 2019 10:11:22 +0900 Subject: [PATCH] fix: WheelDown should not be mapped to Button2 * Because Button2 is often assigned to paste, the document may be destroyed by scrolling action. --- tscreen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tscreen.go b/tscreen.go index c687089c..affbd9d8 100644 --- a/tscreen.go +++ b/tscreen.go @@ -936,7 +936,7 @@ func (t *tScreen) postMouseEvent(x, y, btn int, motion bool) { if !t.wasbtn { button = WheelDown } else { - button = Button2 + button = Button1 } }