lint errors
This commit is contained in:
parent
2dacbb7a03
commit
67703364fc
@ -1846,12 +1846,12 @@ window.addEventListener('pagechange', function pagechange(evt) {
|
|||||||
|
|
||||||
// Firefox specific event, so that we can prevent browser from zooming
|
// Firefox specific event, so that we can prevent browser from zooming
|
||||||
window.addEventListener('DOMMouseScroll', function(evt) {
|
window.addEventListener('DOMMouseScroll', function(evt) {
|
||||||
if(evt.ctrlKey) {
|
if (evt.ctrlKey) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
var ticks = evt.detail;
|
var ticks = evt.detail;
|
||||||
var direction = (ticks > 0) ? 'zoomOut' : 'zoomIn';
|
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]();
|
PDFView[direction]();
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user