fix mobile detection
This commit is contained in:
parent
f53b99e349
commit
95924e4638
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ function loadGallery(images, idx, main, thumbnails) {
|
|||
gallery.querySelectorAll(".thumbnail").forEach((thumb, i) => {
|
||||
thumb.classList.toggle("active", i === index);
|
||||
});
|
||||
if (thumbnailsContainer && thumbnailsContainer(thumbnailsContainer).flexWrap == "nowrap") {
|
||||
if (thumbnailsContainer && getComputedStyle(thumbnailsContainer).flexWrap == "nowrap") {
|
||||
gallery.querySelector('.active').scrollIntoView()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue