blissd / fotema

Photo gallery for Linux
81 stars 8 forks source link

Don't auto-scroll list of images #204

Open forteller opened 1 month ago

forteller commented 1 month ago

When you open Fotema after having added more photos to your folder, the list of photos are updated twice: First just to add placeholders, then again after miniature images have been created.

On these updates you're automatically scrolled down to the bottom of the list of images if you've started scrolling up. This is annoying when you've started looking for something and have to start again. Hope this can be fixed. Thank you! :)

blissd commented 1 month ago

This is a side-effect of Fotema trying to give you a usable UI as soon as possible. Fotema will load the photos it already knows about, and then reload if it detects any changes. The scroll is caused by the the photo album grid being cleared and the all photos added back again.

A solution might be to use one of the insert methods on the album's TypedGridView to avoid removing all the existing photos, but that will come at some complexity to insert items into the right indexes (and to remove any photos that are now gone). I haven't experimented with this, though, so I'm not sure if it will help.

blissd commented 1 month ago

Hmm... there is a bug, too :disappointed: In my current testing of the next feature I'm working on I see that the library is reloading a second time even when there are no changes.