blissd / fotema

Photo gallery for Linux
82 stars 8 forks source link

Touchpad Swipe Gesture Issues #265

Open ayykamp opened 3 weeks ago

ayykamp commented 3 weeks ago

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
blissd commented 3 weeks ago

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?

ayykamp commented 3 weeks ago

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

blissd commented 3 weeks ago

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.