mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 14:21:03 +02:00
fix: regression caused by #652
This commit is contained in:
parent
ed338e948c
commit
05530cf776
1 changed files with 7 additions and 0 deletions
|
@ -246,6 +246,13 @@ impl CommonConfig {
|
||||||
let script = match event.direction() {
|
let script = match event.direction() {
|
||||||
ScrollDirection::Up => scroll_up_script.as_ref(),
|
ScrollDirection::Up => scroll_up_script.as_ref(),
|
||||||
ScrollDirection::Down => scroll_down_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,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue