osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.67k stars 1.02k forks source link

Tracks list: horizontal scroll conflicts with "back" gesture #21217

Open akkana opened 2 days ago

akkana commented 2 days ago

Description

In the tracks screens accessed by Configure Map->Tracks or [profile icon]->Tracks, there's a header representing folders inside the tracks folder. With my current folders, I can see the first four folders in addition to "On map" and "All"; to see past the fourth folder, I have to pull the folder list to the left to expose folders that are hidden off the right side of the screen.

But since I have gestures enabled on Android, Android interprets any pull to the left as "back", which takes me out of the folder list, and if I tap [profile icon]->Tracks to go back, I'm back at the leftmost "On map" and "All".

I try to pull very slowly, but even slow pulls are intercepted as "back" and it often takes me six or more tries before I can get to the folder I want.

Steps to reproduce

Enable gestures (on Android 14, that's Android Settings->Accessibility->System Controls->Navigation Mode) Tap on the current profile (world, walking, driving etc.) or Menu->Configure Map Tap Tracks Make sure you have more folders than can fit in the folder list under "Tracks" and above "Sort by" Swipe left in the folder list

Actual result

You're back in the Configure Map screen

Expected result

You see folders that were previously hidden off the right edge of the list.

There is a workaround: using the "My Places->Tracks" UI instead of Configure Map->Tracks. But it's more taps to make tracks visible that way, and it's harder to make multiple tracks visible at once because every time you make a track visible, the track list disappears and you have to start over.

Some suggestions for possible improvements to make tracks friendlier for people using gestures:

or, if those aren't easy to do,

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: Android 4.9 (beta)
Android/iOS version: 14
Device model: Pixel 6a
Crash-Logs: ?
yuriiurshuliak commented 1 day ago

The bug was not reproduced. To reproduce, enable gesture navigation on an Android 14 device. Then navigate to Menu -> Configure Map -> Tracks. Make sure there are more track folders than can fit on the screen, and try swiping left in the folder list to view hidden folders.

In my case, the folder list scrolls as expected without triggering the back action. The back gesture only activates if swiping very close to the screen's edge.

OsmAnd~ 5.0.0#3640m, released: 2024-11-04

https://github.com/user-attachments/assets/40ad32b5-fc2d-4bce-88c2-0027d276f0bc