Implement event capturing for Radio
This commit is contained in:
parent
7ff95f3a88
commit
18172f80c9
1 changed files with 2 additions and 0 deletions
|
|
@ -175,6 +175,8 @@ where
|
||||||
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
|
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
|
||||||
if layout.bounds().contains(cursor_position) {
|
if layout.bounds().contains(cursor_position) {
|
||||||
messages.push(self.on_click.clone());
|
messages.push(self.on_click.clone());
|
||||||
|
|
||||||
|
return event::Status::Captured;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue