lucasnlm/antimine-android

Going to app switcher digs on an unwanted tile

mike02847272 opened this issue · 2 comments

Describe the bug
When going to the app switcher on Android with swipe up and hold, antimine recognises the touch used to swipe up as the start of a press, and once I'm in the app switcher it doesn't recognise the finger coming off the screen or cancel the touch, keeping it as a long touch, causing me to lose a few legend games halfway through. This happens with all map sizes

To Reproduce
Enable navigation gestures in system settings
Set control scheme to single tap flag, long tap dig
Create any size board
Zoom to an area where the bottom of the screen has a uncovered tile below it
Swipe up from the bottom screen and hold just until you enter the app switcher
Wait the amount of time it takes for a long tap, and you'll have a tile uncovered.

What control style do you use?
Single tap flag, long tap dig with the long tap speed all the way to the right. Speed doesn't matter when it comes to this bug

Expected behavior
The touch to be cancelled immediately when entering the app switcher, just like when going to the home screen.

Screenshots
Here's a video of it hapenning. https://cloud.lodispoto.com/s/oaTioArKTQ85EHk

Android Version:
Android 13, CalyxOS version 4.8.3
Pixel 6 Pro

App Version
17.2.2 F
From F-Droid

Hi!
Thanks for report this bug.
Since since this a Android behavior and it do not call "onPause" when you start swipe up, I have no way to know when to cancel or not a click. I will try to ignore all bottom clicks. I hope this will "fix" this problem. But I will keep this thread open for more future feedbacks about it.

Thank you Lucas!