Android - Swipe to go back touch conflics and issue

In my app, there’s a function that triggers a timer as soon as the user touches the screen in order to calculate how long the screen has been touched. As soon as the user removes his finger, the timer is stopped and properly removed. This timer is also properly cancelled and removed as soon as the touch moves in any direction (> 10 px).

But if the user initiates a “swipe back” gesture and the OS “<” arrow shows up, it does trigger the timer and seems to ignores the movement direction that should cancel/remove the timer.

Is there a way to avoid that? Is there any way to know a “back gesture” has been initiated? Would that also be a problem on an iOS device (I can’t test my app on iOS for now unfortunately).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.