From 08ba884b7fd0def3e42e1ce4ed8da51d56912142 Mon Sep 17 00:00:00 2001 From: Daniel Bonniot Date: Wed, 3 Jul 2013 22:02:53 +0200 Subject: [PATCH] Simplify the implementation of ctrl-home, we don't need to care about pages in this case. 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 809b4b4..669eea6 100644 --- a/share/pdf2htmlEX.js.in +++ b/share/pdf2htmlEX.js.in @@ -363,7 +363,7 @@ var pdf2htmlEX = (function(){ case 36: // Home if (e.ctrlKey) { - _.scroll_to_page(_.pages[1]); + _.$container.scrollTop(0); } else return;