diff options
author | 2020-12-15 06:38:46 +0100 | |
---|---|---|
committer | 2020-12-15 06:38:46 +0100 | |
commit | 3bdf931925067acbaabf040f6c437a54640ed1a0 (patch) | |
tree | 451ff441ff5272d2612af57b625ce12046574884 /native/src/widget/checkbox.rs | |
parent | 09110a93b06ae33af6870b4aded8637748cecace (diff) | |
download | iced-3bdf931925067acbaabf040f6c437a54640ed1a0.tar.gz iced-3bdf931925067acbaabf040f6c437a54640ed1a0.tar.bz2 iced-3bdf931925067acbaabf040f6c437a54640ed1a0.zip |
Turn `Touch` into a `touch::Event` enum
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 92175b25..77a82fad 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -6,7 +6,7 @@ use crate::layout; use crate::mouse; use crate::row; use crate::text; -use crate::touch::{self, Touch}; +use crate::touch; use crate::{ Align, Clipboard, Element, Hasher, HorizontalAlignment, Layout, Length, Point, Rectangle, Row, Text, VerticalAlignment, Widget, @@ -156,10 +156,7 @@ where ) -> event::Status { match event { Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) - | Event::Touch(Touch { - phase: touch::Phase::Started, - .. - }) => { + | Event::Touch(touch::Event::FingerPressed { .. }) => { let mouse_over = layout.bounds().contains(cursor_position); if mouse_over { |