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) + "/"}) }); });