From 8b02183ab198ec16e1c6843280cdd6327bd86bac Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 19 Feb 2020 15:07:10 +0200 Subject: Ignore mouse motion events inside MessageView --- ui/message-view.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') diff --git a/ui/message-view.go b/ui/message-view.go index 1773be0..9d67c7b 100644 --- a/ui/message-view.go +++ b/ui/message-view.go @@ -371,6 +371,9 @@ func (view *MessageView) handleUsernameClick(message *messages.UIMessage, prevMe } func (view *MessageView) OnMouseEvent(event mauview.MouseEvent) bool { + if event.HasMotion() { + return false + } switch event.Buttons() { case tcell.WheelUp: if view.IsAtTop() { -- cgit v1.2.3