Merge branch 'ios-support-wip' into feature/touch-support
This commit is contained in:
commit
09110a93b0
11 changed files with 186 additions and 41 deletions
|
|
@ -6,6 +6,7 @@ use crate::layout;
|
|||
use crate::mouse;
|
||||
use crate::row;
|
||||
use crate::text;
|
||||
use crate::touch::{self, Touch};
|
||||
use crate::{
|
||||
Align, Clipboard, Element, Hasher, HorizontalAlignment, Layout, Length,
|
||||
Point, Rectangle, Row, Text, VerticalAlignment, Widget,
|
||||
|
|
@ -154,7 +155,11 @@ where
|
|||
_clipboard: Option<&dyn Clipboard>,
|
||||
) -> event::Status {
|
||||
match event {
|
||||
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
|
||||
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left))
|
||||
| Event::Touch(Touch {
|
||||
phase: touch::Phase::Started,
|
||||
..
|
||||
}) => {
|
||||
let mouse_over = layout.bounds().contains(cursor_position);
|
||||
|
||||
if mouse_over {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue