chris.giteaandClaude Sonnet 5 86bd4da342 fix(gallery): resync selection highlight against the live scene, not per-cell state
GalleryRowCell only refreshed :selected on its own cardsByFile, keyed
to whichever GalleryRow it currently renders. A relayout's row
membership change (e.g. the width-driven re-chunk settling after
files load before this pane is resized) can leave a since-superseded
GalleryRowCell fully attached and painted for a beat before VirtualFlow
recycles or clears it — the same "needs another pulse to settle"
staleness relayout()'s own javadoc already documents for thumbnail
painting, just surfacing here as a stuck or missing selection border
instead: a card built from that stale row never learns selection moved
on, and a freshly built card for the same file in the surviving row
can just as easily miss the highlight the first time around.

ThumbnailGalleryPane now also resyncs :selected on every actually-
attached .photo-card directly (rows.lookupAll), on every selection
change — ground truth from the live scene instead of bookkeeping that
can lag behind VirtualFlow.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-23 23:16:38 -04:00
2026-08-22 17:52:02 -04:00
2026-08-22 11:54:20 -04:00
2026-08-22 11:54:20 -04:00
2026-08-22 11:54:20 -04:00
2026-08-08 23:21:21 -04:00
2026-07-26 18:49:07 -04:00
2026-07-26 18:49:07 -04:00
S
Description
No description provided
54 MiB
Languages
Java 97.4%
CSS 1.5%
Python 0.9%
JavaScript 0.2%