Implement event capturing for Radio
This commit is contained in:
parent
7ff95f3a88
commit
18172f80c9
@ -175,6 +175,8 @@ where
|
||||
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
|
||||
if layout.bounds().contains(cursor_position) {
|
||||
messages.push(self.on_click.clone());
|
||||
|
||||
return event::Status::Captured;
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
Loading…
Reference in New Issue
Block a user