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, 5 insertions, 2 deletions
diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs
index 8a9c02ce..46983db3 100644
--- a/native/src/widget/radio.rs
+++ b/native/src/widget/radio.rs
@@ -1,6 +1,6 @@
//! Create choices using radio buttons.
use crate::{
- input::{mouse, touch, ButtonState},
+ input::{mouse, touch, ButtonState, Touch},
layout, row, text, Align, Clipboard, Element, Event, Font, Hasher,
HorizontalAlignment, Layout, Length, Point, Rectangle, Row, Text,
VerticalAlignment, Widget,
@@ -122,7 +122,10 @@ where
button: mouse::Button::Left,
state: ButtonState::Pressed,
})
- | Event::Touch(touch::Touch::Started { .. }) => {
+ | Event::Touch(Touch {
+ phase: touch::Phase::Started,
+ ..
+ }) => {
if layout.bounds().contains(cursor_position) {
messages.push(self.on_click.clone());
}