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