mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
Ignore mouse motion events inside MessageView
This commit is contained in:
parent
702592bf89
commit
8b02183ab1
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue