Merge pull request #1910 from tarkah/fix/scrollable-scroll-wheel
Only scroll w/ wheel if over scrollable
This commit is contained in:
commit
329fbc7b21
1 changed files with 4 additions and 0 deletions
|
|
@ -482,6 +482,10 @@ pub fn update<Message>(
|
|||
|
||||
match event {
|
||||
Event::Mouse(mouse::Event::WheelScrolled { delta }) => {
|
||||
if cursor_over_scrollable.is_none() {
|
||||
return event::Status::Ignored;
|
||||
}
|
||||
|
||||
let delta = match delta {
|
||||
mouse::ScrollDelta::Lines { x, y } => {
|
||||
// TODO: Configurable speed/friction (?)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue