From 12ddd03d3b9f6be61008c6a57f3dda1ef1eee131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Wed, 31 Aug 2022 11:36:01 +0900 Subject: [PATCH] fix: Don't translate mouse up events as down --- helix-view/src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/input.rs b/helix-view/src/input.rs index a7f526ba7..083a1e084 100644 --- a/helix-view/src/input.rs +++ b/helix-view/src/input.rs @@ -312,7 +312,7 @@ impl From for MouseEventKind { fn from(kind: crossterm::event::MouseEventKind) -> Self { match kind { crossterm::event::MouseEventKind::Down(button) => Self::Down(button.into()), - crossterm::event::MouseEventKind::Up(button) => Self::Down(button.into()), + crossterm::event::MouseEventKind::Up(button) => Self::Up(button.into()), crossterm::event::MouseEventKind::Drag(button) => Self::Drag(button.into()), crossterm::event::MouseEventKind::Moved => Self::Moved, crossterm::event::MouseEventKind::ScrollDown => Self::ScrollDown,