mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-11-22 05:34:35 +03:00
fix: regression caused by #652
This commit is contained in:
parent
ed338e948c
commit
05530cf776
@ -246,6 +246,13 @@ impl CommonConfig {
|
||||
let script = match event.direction() {
|
||||
ScrollDirection::Up => scroll_up_script.as_ref(),
|
||||
ScrollDirection::Down => scroll_down_script.as_ref(),
|
||||
ScrollDirection::Smooth => {
|
||||
if event.scroll_deltas().unwrap_or_default().1 > 0.0 {
|
||||
scroll_down_script.as_ref()
|
||||
} else {
|
||||
scroll_up_script.as_ref()
|
||||
}
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user