mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
3f774056da
commit
764e8a750a
1 file changed
+1
-1
@@ -10097,12 +10097,12 @@ function setCurrentPage(index) {
|
||||
}
|
||||
|
||||
function updatePageListCurrent(force = false) {
|
||||
const current = el.pageList.querySelector(".page-list-item[data-current]");
|
||||
if (state.thumbnailWindow) {
|
||||
if (!force && state.pageListCurrent === state.pageIndex) return;
|
||||
state.pageListCurrent = state.pageIndex;
|
||||
if (state.showPages && !el.pageList.hidden) revealThumbnail(state.pageIndex);
|
||||
}
|
||||
const current = el.pageList.querySelector(".page-list-item[data-current]");
|
||||
if (current) {
|
||||
if (!force && Number.parseInt(current.dataset.pageIndex, 10) === state.pageIndex) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user