Ignore mouse motion events inside MessageView

This commit is contained in:
Tulir Asokan 2020-02-19 15:07:10 +02:00
parent 702592bf89
commit 8b02183ab1

View File

@ -371,6 +371,9 @@ func (view *MessageView) handleUsernameClick(message *messages.UIMessage, prevMe
} }
func (view *MessageView) OnMouseEvent(event mauview.MouseEvent) bool { func (view *MessageView) OnMouseEvent(event mauview.MouseEvent) bool {
if event.HasMotion() {
return false
}
switch event.Buttons() { switch event.Buttons() {
case tcell.WheelUp: case tcell.WheelUp:
if view.IsAtTop() { if view.IsAtTop() {