Skip to content

Filmstrip and grid follow the active photo to its place in another source - #1143

Closed
PiMinusMax wants to merge 1 commit into
storytold:mainfrom
PiMinusMax:fix-strip-follow-position
Closed

PiMinusMax wants to merge 1 commit into
storytold:mainfrom
PiMinusMax:fix-strip-follow-position

Conversation

@PiMinusMax

Copy link
Copy Markdown
Contributor

Fixes #1142

follow_active also remembers the active photo's index in the strip and scrolls to it when the index changes: another album, folder or source, a filter, or the sort order. Otherwise the user's scroll position stays put, as before (#11).

With a sort by rating or edit time, an edit can move the active photo; the strip then follows it, which is intended.

Tests: new headless test showing_another_source_brings_the_active_photo_back_into_view (filmstrip and grid, album ↔ All Photographs); it fails without the fix. cargo test -p lightcraft-ui-egui: all pass except the six tests_model_setup tests, which fail the same way on main in a build without denoise model support.

…urce

Showing another album, folder or All Photographs while the same photo stays
active kept the filmstrip's (and the grid's) old scroll offset. The photo
sits elsewhere in the new source, so the strip showed other photos than the
active one, often with the active one off screen.

follow_active now also remembers where the active photo is in the strip and
scrolls to it when that place changes (another source, a filter, the sort
order). The user's own scroll position stays put otherwise (issue storytold#11).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bflatastic

Copy link
Copy Markdown
Member

#1253 landed in batch 32a (#1426) for the same issue (#1142). It follows the photo by id, so the grid doesn't scroll again after an import or a delete. Closing as covered. Thank you for the work, @PiMinusMax!


Generated by Claude Code

@bflatastic bflatastic closed this Oct 13, 2026
emmertex added a commit to endthestart/lightcraft that referenced this pull request Nov 14, 2026
TEST-DIET: faster, leaner test suite (scene disk cache, ~1,100 fewer tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filmstrip shows the wrong place after switching to another album or source while the same photo stays active

2 participants