From b78cdd0a9d3b39c1aa6e70fd95d9ac2b4d808fe0 Mon Sep 17 00:00:00 2001 From: Daniel Bonniot Date: Sun, 14 Jul 2013 16:34:02 +0200 Subject: [PATCH] Use scrollHeight to find out how to scroll to the end for ctrl-end. https://github.com/coolwanglu/pdf2htmlEX/issues/180 --- share/pdf2htmlEX.js.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/pdf2htmlEX.js.in b/share/pdf2htmlEX.js.in index 669eea6..dffb53a 100644 --- a/share/pdf2htmlEX.js.in +++ b/share/pdf2htmlEX.js.in @@ -355,7 +355,7 @@ var pdf2htmlEX = (function(){ case 35: // End if (e.ctrlKey) { - _.scroll_to_page(_.pages[_.pages.length-1]); + _.$container.scrollTop(_.$container[0].scrollHeight); } else return;