[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-www] branch master updated: prevent default action t
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-www] branch master updated: prevent default action that selects text on double click |
Date: |
Tue, 07 Mar 2017 17:18:49 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository www.
The following commit(s) were added to refs/heads/master by this push:
new 950ab4e prevent default action that selects text on double click
950ab4e is described below
commit 950ab4ef039a5f5cb9d70a3154cfafeaad760692
Author: Florian Dold <address@hidden>
AuthorDate: Tue Mar 7 17:18:47 2017 +0100
prevent default action that selects text on double click
---
dist/js/pdf-view.js | 6 ++++--
1 file 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;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-www] branch master updated: prevent default action that selects text on double click,
gnunet <=