fixed toc progressbar

This commit is contained in:
2026-04-29 23:23:31 +02:00
parent 8ec3992945
commit 3bcf9f47fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -216,7 +216,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
var rect = article.getBoundingClientRect();
var total = Math.max(article.offsetHeight - window.innerHeight, 1);
var total = Math.max(article.scrollHeight - window.innerHeight, 1);
var progress = Math.min(
Math.max((-rect.top / total) * 100, 0),