summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-03-07 17:18:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-03-07 17:18:47 +0100
commit950ab4ef039a5f5cb9d70a3154cfafeaad760692 (patch)
treec8cb58591fb8c56e6e3e9ef7c8542eabb6ce96d8 /dist
parent9de6a7e224070a610628beee07313200cf5bdbb6 (diff)
downloadwww-950ab4ef039a5f5cb9d70a3154cfafeaad760692.tar.gz
www-950ab4ef039a5f5cb9d70a3154cfafeaad760692.tar.bz2
www-950ab4ef039a5f5cb9d70a3154cfafeaad760692.zip
prevent default action that selects text on double click
Diffstat (limited to 'dist')
-rw-r--r--dist/js/pdf-view.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/js/pdf-view.js b/dist/js/pdf-view.js
index cb12558..3c39ba7 100644
--- a/dist/js/pdf-view.js
+++ b/dist/js/pdf-view.js
@@ -62,7 +62,8 @@ function queueRenderPage(num) {
/**
* Displays previous page.
*/
-function onPrevPage() {
+function onPrevPage(event) {
+ event.preventDefault();
if (pageNum <= 1) {
return;
}
@@ -74,7 +75,8 @@ document.getElementById('canvas-left').addEventListener('click', onPrevPage);
/**
* Displays next page.
*/
-function onNextPage() {
+function onNextPage(event) {
+ event.preventDefault();
if (pageNum >= pdfDoc.numPages - 1) {
return;
}