]> git.parisson.com Git - pdf.js.git/commitdiff
don't try to go further back than page 1
authorAndreas Gal <andreas.gal@gmail.com>
Thu, 12 May 2011 03:55:50 +0000 (20:55 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Thu, 12 May 2011 03:55:50 +0000 (20:55 -0700)
test.html

index 8a5fb0e93ce2ff8e9ff26b4cc6da8c70d6e362ba..4eb3a76296b468777b0fd51efade06e413e2703e 100644 (file)
--- a/test.html
+++ b/test.html
@@ -65,7 +65,7 @@ function nextPage() {
 }
 
 function prevPage() {
-    if (pageNum > 0)
+    if (pageNum > 1)
         --pageNum;
     displayPage(pageNum);
 }