From bb9709ee0de16a6f0ef85701578f9b88e1f8be4a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 6 Oct 2016 10:42:09 +0200 Subject: [PATCH] Corrected bug on firefox (Thanks mpizenberg) --- static/js/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/viewer.js b/static/js/viewer.js index d21d068..4708e32 100644 --- a/static/js/viewer.js +++ b/static/js/viewer.js @@ -118,7 +118,7 @@ $(function() { sio = (function() { $(window).resize(update); - sio.onMouseDown = function() { + sio.onMouseDown = function(event) { var x = event.offsetX / canvasPdf.width; var y = event.offsetY / canvasPdf.height;