pause on last page
This commit is contained in:
parent
5cf268db4d
commit
75f31b83e9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue