1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use serde::{Deserialize, Serialize};

#[derive(Eq, PartialEq, Debug, Copy, Clone, Serialize, Deserialize)]
/// Indicates in what direction a mouse wheel scroll event was.
pub enum ScrollDirection {
    /// Scroll was upwards
    ScrollUp,
    /// Scroll was downwards
    ScrollDown,
    /// Scroll was to the left
    ScrollLeft,
    /// Scroll was to the right
    ScrollRight,
}