more debug

This commit is contained in:
Olivier 'reivilibre' 2021-06-26 23:51:41 +01:00
parent 1d3010ca84
commit 05abfc00cc
1 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@ use crate::{
Clipboard, Element, Hasher, Layout, Length, Padding, Point, Rectangle, Clipboard, Element, Hasher, Layout, Length, Padding, Point, Rectangle,
Widget, Widget,
}; };
use std::any::Any;
use std::collections::HashSet; use std::collections::HashSet;
use std::hash::Hash; use std::hash::Hash;
@ -236,7 +237,7 @@ where
} }
} }
Event::Touch(x) => { Event::Touch(x) => {
eprintln!("{:?}", x); eprintln!("B {:?} Bds {:?}", x, layout.bounds());
match x { match x {
touch::Event::FingerPressed { id, position } => { touch::Event::FingerPressed { id, position } => {
if layout.bounds().contains(position) { if layout.bounds().contains(position) {
@ -248,7 +249,7 @@ where
touch::Event::FingerMoved { id, position } => { touch::Event::FingerMoved { id, position } => {
if !layout.bounds().contains(position) { if !layout.bounds().contains(position) {
let _ = self.fingers_mid_press.remove(&id); let _ = self.fingers_mid_press.remove(&id);
} else {
return event::Status::Captured; return event::Status::Captured;
} }
} }