voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Configurable gestures

Open burakcan opened this issue 1 year ago • 9 comments

Apollo had configurable gestures and I think it's a pretty useful thing to be able to customize. Screenshot from Apollo for reference:

image

burakcan avatar Jun 29 '23 09:06 burakcan

Hi, thanks for the issue! Agreed wefwef should have configurable gestures :)

aeharding avatar Jun 29 '23 14:06 aeharding

Should have options to disable left, right, and completely as well.

aeharding avatar Jul 05 '23 17:07 aeharding

I'm going to work on this using the settings db PR as a base.

rsammelson avatar Jul 06 '23 02:07 rsammelson

Hopefully will have this done on Friday, but it might be later in the weekend, the number of PRs I have open is getting a little hard to manage. Should clear up once the settings database is merged.

rsammelson avatar Jul 06 '23 06:07 rsammelson

@rsammelson, yeah, we really need to sort through the backlog of storage PRs lol

aeharding avatar Jul 06 '23 06:07 aeharding

@aeharding still a little large on the open PR count, but I am going to start this.

Do you actually need to be logged in to hide posts, or can I remove that line in the process of adding configuration? Edit: I guess you do because the hidden posts are per account, should there be a separate anonymous hide list?

rsammelson avatar Jul 09 '23 03:07 rsammelson

Also, how do mentions work? I can't get one to show up.

rsammelson avatar Jul 09 '23 03:07 rsammelson

This is mostly done now except for a little debugging, and dealing with no swipe actions on one side.

rsammelson avatar Jul 10 '23 05:07 rsammelson

I think this is pretty much done, but I branched off of #185 because my last commit there makes adding settings selectors much cleaner.

rsammelson avatar Jul 10 '23 06:07 rsammelson

Not sure if you need this but in Apollo, there is a section in the "Gestures" panel in Settings, under the one in the above top comment screen shot to manager "Other" (which is not a great label, I would use something more action-oriented like "Control") so here is a screen shot below.

When either of the 'Disable" swipes is turned to On, that section that manages that swipe type is hidden. The control labeled Disable Navigation Gestures is very helpful (in my use case at least) when it is in the off position and both the left and right swipes are disabled. This use case makes swiping purely navigational, which helps when mobility is an issue. It keeps me from accidentally upvoting and replying and provides a purely gesture based navigation to the app. I can hit the voting and reply buttons if I want to do that, and I cannot accidentally vote or start a reply when what I want to do is navigate. This is a huge usability advantage over most apps, I was accidentally upvoting and replying all the time before I found this screen, and this control just makes life a lot better.

ApolloSettingsGesturesOther_issue64_Small

robertafreese avatar Jul 13 '23 16:07 robertafreese

The "other" panel may actually be something relevant to #101

robertafreese avatar Jul 17 '23 22:07 robertafreese

@rsammelson I put together a branch that also implements this (https://github.com/jasperswallen/wefwef/tree/feat/swipe-options) - let me know if you’d prefer to use your implementation or if I should file a PR.

jasperswallen avatar Jul 20 '23 06:07 jasperswallen

Based on a cursory look, I like my implementation based on two reasons: it's shorter 500 lines added vs 800, and I prefer having just one location that chooses the swipe action.

rsammelson avatar Jul 20 '23 06:07 rsammelson

And for general information, I'm planning to convert that draft PR into a regular one in the next day or so once I get a chance to double check a couple things.

rsammelson avatar Jul 20 '23 06:07 rsammelson

Is this supposed to have the ability to be a continuous back navigation?

If you tap into a post, then go to a community with the link on the name of the community, then go to a different post in the community, then go to a user profile with the link from a comment on that second post, can we expect swiping 'back' to undo that path?

Because I am finding that in this case the swipe quits working as navigation, when you get 'back' to the profile page, no spot anywhere will swipe back to the comment they made.

It seems to be that you can only go 'back' two levels and then you can no longer swipe back and have to use the Back button.

Is this by design, something that Ionic is doing, or would this be something to put in a new issue? Possibly with a video of the steps?

robertafreese avatar Jul 24 '23 22:07 robertafreese

That is not related to this issue, as this only changes the swipe actions in posts and comments and so forth, not navigation gestures. I would definitely make a new issue for that though.

rsammelson avatar Jul 24 '23 22:07 rsammelson

@robertafreese I believe that's #33

aeharding avatar Jul 24 '23 23:07 aeharding

@aeharding got it, thanks!

robertafreese avatar Jul 25 '23 00:07 robertafreese