Open Argun opened 5 years ago
@Argun have you got any solution yet for this?
have update slimscroll..js function attachwheel(target) with
function attachWheel(target) { if (window.addEventListener) { target.addEventListener('DOMMouseScroll', _onWheel, { capture: false, passive: false }); target.addEventListener('mousewheel', _onWheel, { capture: false, passive: false }); } else { document.attachEvent("onmousewheel", _onWheel) } }
still getting error in some places,
@Argun have you got any solution yet for this?
have update slimscroll..js function attachwheel(target) with
function attachWheel(target) { if (window.addEventListener) { target.addEventListener('DOMMouseScroll', _onWheel, { capture: false, passive: false }); target.addEventListener('mousewheel', _onWheel, { capture: false, passive: false }); } else { document.attachEvent("onmousewheel", _onWheel) } }
still getting error in some places,
you can use the following code to distinguish whether the passive attribute is supported.
var supportsPassive = false;
try {
var opts = Object.defineProperty({}, 'passive', {
get: function() {
supportsPassive = true;
}
});
window.addEventListener("test", null, opts);
} catch (e) {}
Chrome output above violation message after chrome v51, please refer this.