Implement event capturing for Checkbox
This commit is contained in:
parent
a44cd07212
commit
04468a7147
1 changed files with 2 additions and 0 deletions
|
|
@ -172,6 +172,8 @@ where
|
||||||
|
|
||||||
if mouse_over {
|
if mouse_over {
|
||||||
messages.push((self.on_toggle)(!self.is_checked));
|
messages.push((self.on_toggle)(!self.is_checked));
|
||||||
|
|
||||||
|
return event::Status::Captured;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue