more debug
This commit is contained in:
parent
1d3010ca84
commit
05abfc00cc
|
@ -11,6 +11,7 @@ use crate::{
|
|||
Clipboard, Element, Hasher, Layout, Length, Padding, Point, Rectangle,
|
||||
Widget,
|
||||
};
|
||||
use std::any::Any;
|
||||
use std::collections::HashSet;
|
||||
use std::hash::Hash;
|
||||
|
||||
|
@ -236,7 +237,7 @@ where
|
|||
}
|
||||
}
|
||||
Event::Touch(x) => {
|
||||
eprintln!("{:?}", x);
|
||||
eprintln!("B {:?} Bds {:?}", x, layout.bounds());
|
||||
match x {
|
||||
touch::Event::FingerPressed { id, position } => {
|
||||
if layout.bounds().contains(position) {
|
||||
|
@ -248,7 +249,7 @@ where
|
|||
touch::Event::FingerMoved { id, position } => {
|
||||
if !layout.bounds().contains(position) {
|
||||
let _ = self.fingers_mid_press.remove(&id);
|
||||
|
||||
} else {
|
||||
return event::Status::Captured;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue