From 08a0906e9f0bfbea2550fe1e20e35946b5a6884a Mon Sep 17 00:00:00 2001 From: Ajurna Date: Thu, 8 Apr 2021 11:29:10 +0100 Subject: [PATCH] updated pdfjs --- comic/templates/comic/read_comic_pdf.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/comic/templates/comic/read_comic_pdf.html b/comic/templates/comic/read_comic_pdf.html index 83f6f99..e5ad77d 100644 --- a/comic/templates/comic/read_comic_pdf.html +++ b/comic/templates/comic/read_comic_pdf.html @@ -71,6 +71,9 @@ function renderPage(num) { renderPage(pageNumPending); pageNumPending = null; } + }).then(function () { + document.getElementById('the-canvas').scrollIntoView({behavior: 'smooth'}) + $.ajax({url: "/comic/set_page/{{nav.cur_path}}/" + (num-1) + "/"}) }); });