[Pkg-javascript-commits] [pdf.js] 58/119: prevent viewer from zooming on cmd+mousewheel

David Prévot taffit at moszumanska.debian.org
Wed May 13 21:27:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit 34d3b96b52fe95531b0a4ff14659edabcc6ba9ee
Author: Taylor Brown <browtayl at onid.oregonstate.edu>
Date:   Thu Apr 9 16:51:16 2015 -0700

    prevent viewer from zooming on cmd+mousewheel
---
 web/viewer.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/viewer.js b/web/viewer.js
index f9788d8..87ea071 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -1981,7 +1981,8 @@ function handleMouseWheel(evt) {
   if (PresentationMode.active) {
     evt.preventDefault();
     PDFViewerApplication.mouseScroll(ticks * MOUSE_WHEEL_DELTA_FACTOR);
-  } else if (evt.ctrlKey) { // Only zoom the pages, not the entire viewer
+  } else if (evt.ctrlKey || evt.metaKey) {
+    // Only zoom the pages, not the entire viewer
     evt.preventDefault();
     PDFViewerApplication[direction](Math.abs(ticks));
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list