This commit is contained in:
parent
78a2524ce9
commit
84937c88a1
|
@ -234,4 +234,16 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// </mediakeys>
|
// </mediakeys>
|
||||||
|
|
||||||
|
// <scroller>
|
||||||
|
window.addEventListener('wheel', function(event) {
|
||||||
|
if (event.target.closest('.media-object')) {
|
||||||
|
if (event.deltaY < 0) {
|
||||||
|
document.getElementById('prev').click();
|
||||||
|
} else if (event.deltaY > 0) {
|
||||||
|
document.getElementById('next').click();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
// </scroller>
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user