fotema icon indicating copy to clipboard operation
fotema copied to clipboard

Touchpad Swipe Gesture Issues

Open ayykamp opened this issue 1 year ago • 3 comments

When the photo viewer is open swiping left/right should navigate between the prev/next photo. But because the photo viewer is wrapped in a Adw::NavigationView swiping left also navigates back. So the current behavior is a bit weird: When swiping left it always navigates correctly to the next photo. When swiping right it navigates to the previous photo unless you swiped left just before that. Starting but not completing the "navigate back" gesture seems to reset this. I've made a small screencast to demonstrate:

What I did is just:

  1. Swipe right (works)
  2. Swipe left partially (start navigating back but not completely)
  3. Swipe left again (works normally now) Screencast from 2024-10-29 12-11-41.webm

ayykamp avatar Oct 29 '24 11:10 ayykamp

Hi @ayykamp. Thank you for your bug report. I have a confession... I knew about this problem and shipped anyway :1st_place_medal:

I would like to fix this, but I'm not sure how. I guess I either have to configure the adw::NavigationView to disable swiping to dismiss, or find an alternative to adw::NavigationView.

Do you have a suggestion as to what could replace that view?

blissd avatar Oct 29 '24 13:10 blissd

I dont really, no. I also dont really know what the ideal solution for this is, I kinda like the swipe to dismiss gesture.

ayykamp avatar Oct 29 '24 13:10 ayykamp

I like having a swipe to dismiss gesture, too. I think I'd like to have the dismiss gesture be a swipe down, though. Hmm... I think the Tuba Mastodon client works that way when displaying images. I'll take a look at the widgets it uses.

blissd avatar Oct 29 '24 14:10 blissd