fix: Don't translate mouse up events as down

pull/3612/head
Blaž Hrastnik 2 years ago
parent 701cea54d2
commit 12ddd03d3b
No known key found for this signature in database
GPG Key ID: 1238B9C4AD889640

@ -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,

Loading…
Cancel
Save