From 34d3b96b52fe95531b0a4ff14659edabcc6ba9ee Mon Sep 17 00:00:00 2001 From: Taylor Brown Date: Thu, 9 Apr 2015 16:51:16 -0700 Subject: [PATCH] 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 f9788d83b..87ea07134 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)); }