diff options
author | 2019-10-13 18:10:12 +0200 | |
---|---|---|
committer | 2019-10-13 18:10:12 +0200 | |
commit | ccc463a7c051b1096bc8a9f17ec64c2912a11247 (patch) | |
tree | 738267e39eb9c11c0a72d44022cab68a4df319dd /native | |
parent | 8c3dabb5a1640ed77c35f895ca866262bb4f885c (diff) | |
download | iced-ccc463a7c051b1096bc8a9f17ec64c2912a11247.tar.gz iced-ccc463a7c051b1096bc8a9f17ec64c2912a11247.tar.bz2 iced-ccc463a7c051b1096bc8a9f17ec64c2912a11247.zip |
Draw checkbox in `iced_wgpu`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/checkbox.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index cb2baedd..5393417e 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -26,9 +26,7 @@ where button: mouse::Button::Left, state: ButtonState::Pressed, }) => { - let mouse_over = layout - .children() - .any(|child| child.bounds().contains(cursor_position)); + let mouse_over = layout.bounds().contains(cursor_position); if mouse_over { messages.push((self.on_toggle)(!self.is_checked)); |