Commit 252596b
fix(gallery): sync thumbnail strip to the active image (DECO-5280)
When the main image advances (arrow/swipe/keyboard), scroll the active dot
into view so the thumbnail strip keeps the current thumb visible — matters for
the PDP gallery with many images.
- Slider observer: dot?.scrollIntoView({ block: "nearest", inline: "nearest" }).
`nearest` is a no-op for small dot rows (Carousel/Logos) and never scrolls the
page; only scrollable strips (gallery thumbnails) move.
The issue's other two parts already work: variant→image switch (variant nav
reloads page.product → filterImagesForVariant) and zoom-modal prev/next arrows.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c30eb3d commit 252596b
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
0 commit comments