#49 issue with video gallery
This commit is contained in:
Alan Grainger
2025-01-12 08:15:03 +08:00
parent 2cb492470f
commit a3095897ef
4 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -58,8 +58,6 @@ class LGallery {
loadMoreItems () {
const numberOfItems = 80
if (this.index < this.items.length) {
this.index += numberOfItems
// Append new thumbnails
this.items
.slice(this.index, this.index + numberOfItems)
@@ -74,6 +72,7 @@ class LGallery {
<img alt="" src="${item.thumbnailUrl}"/></a>`)
}
})
this.index += numberOfItems
this.lightGallery.refresh()
}
}