Enable scroll selection for PickList only when scroll is discrete
This commit is contained in:
parent
6069e90c9b
commit
46aab24d91
1 changed files with 4 additions and 8 deletions
|
|
@ -247,15 +247,11 @@ where
|
||||||
event_status
|
event_status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Event::Mouse(mouse::Event::WheelScrolled { delta })
|
Event::Mouse(mouse::Event::WheelScrolled {
|
||||||
if layout.bounds().contains(cursor_position)
|
delta: mouse::ScrollDelta::Lines { y, .. },
|
||||||
&& !*self.is_open =>
|
}) if layout.bounds().contains(cursor_position)
|
||||||
|
&& !*self.is_open =>
|
||||||
{
|
{
|
||||||
let y = match delta {
|
|
||||||
mouse::ScrollDelta::Lines { y, .. }
|
|
||||||
| mouse::ScrollDelta::Pixels { y, .. } => y,
|
|
||||||
};
|
|
||||||
|
|
||||||
fn find_next<'a, T: PartialEq>(
|
fn find_next<'a, T: PartialEq>(
|
||||||
selected: &'a T,
|
selected: &'a T,
|
||||||
mut options: impl Iterator<Item = &'a T>,
|
mut options: impl Iterator<Item = &'a T>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue