From 05abfc00cce5c2caba58418351613c09b4b34e59 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 26 Jun 2021 23:51:41 +0100 Subject: [PATCH] more debug --- native/src/widget/button.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/native/src/widget/button.rs b/native/src/widget/button.rs index c0f5903d..741d6fd2 100644 --- a/native/src/widget/button.rs +++ b/native/src/widget/button.rs @@ -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; } }