Authored by biao

修复购物车面板穿透滑动问题

... ... @@ -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() {
... ...