aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-08-31 02:36:01 +0000
committerBlaž Hrastnik2022-08-31 02:36:18 +0000
commit12ddd03d3b9f6be61008c6a57f3dda1ef1eee131 (patch)
treec9dbc79e2148814fab0e3a31d1e9b4520436a7fd /helix-view/src
parent701cea54d280786d5762396c5d2655cba5b508b4 (diff)
fix: Don't translate mouse up events as down
Diffstat (limited to 'helix-view/src')
-rw-r--r--helix-view/src/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/input.rs b/helix-view/src/input.rs
index a7f526ba..083a1e08 100644
--- a/helix-view/src/input.rs
+++ b/helix-view/src/input.rs
@@ -312,7 +312,7 @@ impl From<crossterm::event::MouseEventKind> 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,