aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-19 15:07:10 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-19 15:07:10 +0200
commit8b02183ab198ec16e1c6843280cdd6327bd86bac (patch)
treed412c391d4e369eb347cba6dc65577c409d4d2dd /ui
parent702592bf89dfcf1ec382c0a09d99318bce7a3943 (diff)
Ignore mouse motion events inside MessageView
Diffstat (limited to 'ui')
-rw-r--r--ui/message-view.go3
1 files changed, 3 insertions, 0 deletions
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() {