don't check bounds on lift because seems buggy

This commit is contained in:
Olivier 'reivilibre' 2021-06-27 00:09:43 +01:00
parent 9cdd7c5527
commit 340601f526
2 changed files with 4 additions and 4 deletions

View File

@ -256,9 +256,8 @@ where
}
}
touch::Event::FingerLifted { id, position } => {
if self.fingers_mid_press.remove(&id)
&& layout.bounds().contains(position)
{
// !!! The finger position seems to be buggy on the Lift event.
if self.fingers_mid_press.remove(&id) {
eprintln!("lifted");
// this should be treated as a click
if let Some(on_press) = self.on_press.clone() {

View File

@ -201,8 +201,9 @@ where
}
}
touch::Event::FingerLifted { id, position } => {
// !!! The finger position seems to be buggy on the Lift event.
if self.fingers_mid_press.remove(&id)
&& layout.bounds().contains(position)
// && layout.bounds().contains(position)
{
// this should be treated as a click
messages.push((self.on_toggle)(!self.is_active));