pause on last page

This commit is contained in:
xenofem 2024-07-24 17:04:12 -04:00
parent 5cf268db4d
commit 75f31b83e9

View file

@ -88,8 +88,9 @@ document.addEventListener('DOMContentLoaded', () => {
elapsed = 0;
updateBar();
if (pageNum >= IMAGES.length) {
if (pageNum >= IMAGES.length - 1) {
pageNum = IMAGES.length - 1;
changeDuration(duration, true);
}
if (pageNum < 0) {
pageNum = 0;