Stabilize WebGL book pagination restore
This commit is contained in:
@@ -351,6 +351,10 @@ class WebGLBookSceneModule extends BaseModule {
|
||||
this.persistenceManager?.updatePreference?.('webgl', 'bookProgress', progress);
|
||||
window.BookLabDebug?.setReadingProgress?.(progress);
|
||||
}
|
||||
const maxVisitedPagePosition = Number(state.maxVisitedPagePosition ?? state.pagePosition);
|
||||
if (Number.isFinite(maxVisitedPagePosition)) {
|
||||
window.BookLabDebug?.setMaxVisitedPagePosition?.(maxVisitedPagePosition);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user