mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
lint errors
This commit is contained in:
parent
2dacbb7a03
commit
67703364fc
1 changed files with 2 additions and 2 deletions
|
@ -1846,12 +1846,12 @@ window.addEventListener('pagechange', function pagechange(evt) {
|
|||
|
||||
// Firefox specific event, so that we can prevent browser from zooming
|
||||
window.addEventListener('DOMMouseScroll', function(evt) {
|
||||
if(evt.ctrlKey) {
|
||||
if (evt.ctrlKey) {
|
||||
evt.preventDefault();
|
||||
|
||||
var ticks = evt.detail;
|
||||
var direction = (ticks > 0) ? 'zoomOut' : 'zoomIn';
|
||||
for(var i = 0, length = Math.abs(ticks); i < length; i++)
|
||||
for (var i = 0, length = Math.abs(ticks); i < length; i++)
|
||||
PDFView[direction]();
|
||||
}
|
||||
}, false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue