Skip to content

Commit

Permalink
Return event_status after check all possible events. It was returning…
Browse files Browse the repository at this point in the history
… before check Mouse Events.
  • Loading branch information
LuisLiraC committed Mar 10, 2024
1 parent f00e7c4 commit cb09540
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,6 @@ where
)
};

if let event::Status::Captured = event_status {
return event::Status::Captured;
}

if let Event::Keyboard(keyboard::Event::ModifiersChanged(modifiers)) =
event
{
Expand Down Expand Up @@ -650,6 +646,10 @@ where
}
}

if let event::Status::Captured = event_status {
return event::Status::Captured;
}

event_status
}

Expand Down

0 comments on commit cb09540

Please sign in to comment.