mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 07:38:07 +02:00
Merge pull request #5926 from browtayl/1018932
prevent viewer from zooming on cmd+mousewheel (bug 1018932)
This commit is contained in:
commit
e4e9a2adea
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue