tuskyapp / Tusky

An Android client for the microblogging server Mastodon
https://tusky.app
GNU General Public License v3.0
2.5k stars 390 forks source link

[Feature Request] Allow swiping right to open drawer from anywhere, not just left edge. #2783

Open lexd0g opened 2 years ago

lexd0g commented 2 years ago

Currently in Tusky you can swipe from the left edge to open the left menu drawer, this works for 3 button navigation users, however, Android has been using gesture navigation as default for a while, which makes edge swipes a back gesture, so your only option for opening the drawer is tapping on your profile picture (annoying on large phones), or if you disable the top bar entirely you're left with no way to access the drawer other than switching back to button navigation.

My proposal is that opening the app drawer should work similarly to how it does on Twitter and Discord, where you can swipe right anywhere for the drawer to show up (though, if swiping between tabs is enabled, should only work in the leftmost Home tab).

Here's a simple diagram showing what I mean:

image


eljenso commented 2 years ago

This could even be considered a bug.

I just started using Tusky and use the gesture navigation on Android. And as I was playing around with the settings of Tusky, I activated the "Hide the title of the top toolbar" setting.

Back on the main screen of the app, I was unable to get back into the settings. Before, I could tap on my profile picture to open the sidebar, but that was gone, and swiping from the edge of the phone closed the app.

Just by finding this ticket, i was able to use the workaround of temporary changing the navigation system of Android to get into the settings of Tusky.

lack commented 1 year ago

Another workaround, keeping gesture navigation enabled, is to long-press the left edge of the screen. When I do this, I see the menu start to peek out, and then swiping right opens the menu and is not interpreted as a "back" gesture.

nikclayton commented 1 year ago

If I've read https://m3.material.io/components/navigation-drawer/guidelines#046936be-3330-492b-94d3-5a8cb41b17e9 correctly,

Dismissible standard drawers can be used for layouts that prioritize content (such as a photo gallery) or for apps where users are unlikely to switch destinations often. They should use a visible navigation menu icon to open and close the drawer.

Tusky has a dismissible standard drawer, so should have an always-visible hamburger menu to open/close it.

TheLastProject commented 1 year ago

Not sure how helpful this information is but I noticed that Telegram also allows opening the left bar from any screen space by swiping (so that adds to the list of big apps behaving like this and gives a FOSS example with possibly useful code to reference).

I understand this would conflict with tab swiping, so is most logical to only enable when the user is on the most left tab I think.