Skip to content

Commit

Permalink
fix: Don't translate mouse up events as down
Browse files Browse the repository at this point in the history
  • Loading branch information
archseer committed Aug 31, 2022
1 parent 701cea5 commit 12ddd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 12ddd03

Please sign in to comment.