Fix slideshow current slide index update logic
This commit is contained in:
@@ -2315,6 +2315,8 @@ const SlideshowManager = {
|
|||||||
|
|
||||||
currentSlide.classList.add("active");
|
currentSlide.classList.add("active");
|
||||||
|
|
||||||
|
STATE.slideshow.currentSlideIndex = index;
|
||||||
|
|
||||||
// Restore focus for TV mode navigation continuity
|
// Restore focus for TV mode navigation continuity
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
if (focusSelector) {
|
if (focusSelector) {
|
||||||
@@ -2348,8 +2350,6 @@ const SlideshowManager = {
|
|||||||
if (logo) logo.classList.add("animate");
|
if (logo) logo.classList.add("animate");
|
||||||
}
|
}
|
||||||
|
|
||||||
STATE.slideshow.currentSlideIndex = index;
|
|
||||||
|
|
||||||
if (index === 0 || !previousVisibleSlide) {
|
if (index === 0 || !previousVisibleSlide) {
|
||||||
const dotsContainer = container.querySelector(".dots-container");
|
const dotsContainer = container.querySelector(".dots-container");
|
||||||
if (dotsContainer) {
|
if (dotsContainer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user