summaryrefslogtreecommitdiffstats
path: root/native/src/widget/radio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/widget/radio.rs')
-rw-r--r--native/src/widget/radio.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs
index 3a1dd386..69952345 100644
--- a/native/src/widget/radio.rs
+++ b/native/src/widget/radio.rs
@@ -4,7 +4,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,
@@ -162,10 +162,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 { .. }) => {
if layout.bounds().contains(cursor_position) {
messages.push(self.on_click.clone());