Implement event capturing for Checkbox
This commit is contained in:
parent
a44cd07212
commit
04468a7147
@ -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…
x
Reference in New Issue
Block a user