gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-www] branch master updated: prevent default also nee


From: gnunet
Subject: [GNUnet-SVN] [taler-www] branch master updated: prevent default also needs to be on mousedown
Date: Tue, 07 Mar 2017 17:24:17 +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 8774fdd  prevent default also needs to be on mousedown
8774fdd is described below

commit 8774fdd6915dd27e02c737f155f2fbb1bcc10334
Author: Florian Dold <address@hidden>
AuthorDate: Tue Mar 7 17:24:08 2017 +0100

    prevent default also needs to be on mousedown
---
 dist/js/pdf-view.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dist/js/pdf-view.js b/dist/js/pdf-view.js
index 3c39ba7..7fd6567 100644
--- a/dist/js/pdf-view.js
+++ b/dist/js/pdf-view.js
@@ -88,6 +88,14 @@ 
document.getElementById('canvas-right').addEventListener('click', onNextPage);
 document.getElementById('canvas-left').style.display = 'block';
 document.getElementById('canvas-right').style.display = 'block';
 
+
+function onMouseDown(event) {
+  event.preventDefault();
+}
+
+document.getElementById('canvas-left').addEventListener('mousedown', 
onMouseDown);
+document.getElementById('canvas-right').addEventListener('mousedown', 
onMouseDown);
+
 /**
  * Asynchronously downloads PDF.
  */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]