mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
prevent viewer from zooming on cmd+mousewheel
This commit is contained in:
parent
1d6fae231e
commit
34d3b96b52
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue