Flesh out volume data

This commit is contained in:
ZXY101
2023-10-03 12:44:59 +02:00
parent aff1566e28
commit 316b99c20f
8 changed files with 128 additions and 27 deletions

View File

@@ -62,7 +62,13 @@
if (showSecondPage() && page + 1 === pages.length && newPage > page) {
return;
}
updateProgress(volume.mokuroData.volume_uuid, clamp(newPage, 1, pages?.length));
const pageClamped = clamp(newPage, 1, pages?.length);
updateProgress(
volume.mokuroData.volume_uuid,
pageClamped,
getCharCount(pages, pageClamped) || 0,
pageClamped === pages.length
);
zoomDefault();
}
}