Browse Source

Merge pull request #5926 from browtayl/1018932

prevent viewer from zooming on cmd+mousewheel (bug 1018932)
Tim van der Meij 10 years ago
parent
commit
e4e9a2adea
  1. 3
      web/viewer.js

3
web/viewer.js

@ -1981,7 +1981,8 @@ function handleMouseWheel(evt) {
if (PresentationMode.active) { if (PresentationMode.active) {
evt.preventDefault(); evt.preventDefault();
PDFViewerApplication.mouseScroll(ticks * MOUSE_WHEEL_DELTA_FACTOR); 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(); evt.preventDefault();
PDFViewerApplication[direction](Math.abs(ticks)); PDFViewerApplication[direction](Math.abs(ticks));
} }

Loading…
Cancel
Save