...
|
...
|
@@ -90,13 +90,15 @@ function preventDefault(event) { |
|
|
}
|
|
|
|
|
|
function disableScroll(e) {
|
|
|
if (window.addEventListener) {// older FF
|
|
|
|
|
|
// older FF
|
|
|
if (window.addEventListener) {
|
|
|
window.addEventListener('DOMMouseScroll', preventDefault, false);
|
|
|
}
|
|
|
|
|
|
window.onwheel = preventDefault; // modern standard
|
|
|
window.onmousewheel = document.onmousewheel = preventDefault; // older browsers, IE
|
|
|
window.ontouchmove = preventDefault; // mobile
|
|
|
window.ontouchmove = preventDefault; // mobile
|
|
|
}
|
|
|
|
|
|
function enableScroll() {
|
...
|
...
|
|