mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-11-28 04:12:25 +03:00
Translate new ScrollLeft/ScrollRight crossterm mouse events
This commit is contained in:
parent
e8fef6b6fc
commit
050c019ccb
@ -43,6 +43,10 @@ pub enum MouseEventKind {
|
||||
ScrollDown,
|
||||
/// Scrolled mouse wheel upwards (away from the user).
|
||||
ScrollUp,
|
||||
/// Scrolled mouse wheel leftwards.
|
||||
ScrollLeft,
|
||||
/// Scrolled mouse wheel rightwards.
|
||||
ScrollRight,
|
||||
}
|
||||
|
||||
/// Represents a mouse button.
|
||||
@ -458,6 +462,8 @@ impl From<crossterm::event::MouseEventKind> for MouseEventKind {
|
||||
crossterm::event::MouseEventKind::Moved => Self::Moved,
|
||||
crossterm::event::MouseEventKind::ScrollDown => Self::ScrollDown,
|
||||
crossterm::event::MouseEventKind::ScrollUp => Self::ScrollUp,
|
||||
crossterm::event::MouseEventKind::ScrollLeft => Self::ScrollLeft,
|
||||
crossterm::event::MouseEventKind::ScrollRight => Self::ScrollRight,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user