close #13 refresh page at end of loop
This commit is contained in:
parent
878dea1ee6
commit
3f72ce0c89
2 changed files with 15 additions and 1 deletions
|
|
@ -194,6 +194,10 @@ const navigation = (() => {
|
|||
idx = utils.calc.wrap(curIdx + (i + 1) * direction, totalDisplays);
|
||||
if (displays[idx].status === STATUS.loaded) break;
|
||||
}
|
||||
// if new display index is less than current display a wrap occurred, test for reload timeout
|
||||
if (idx <= curIdx) {
|
||||
if (index.refreshCheck()) return;
|
||||
}
|
||||
const newDisplay = displays[idx];
|
||||
// hide all displays
|
||||
hideAllCanvases();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue