From 5ceab0e12da6d6b2aaaf2936f51a364ee6af0e3e Mon Sep 17 00:00:00 2001 From: YangYang Date: Wed, 31 Jul 2019 15:36:01 +0800 Subject: [PATCH] fix error: [Unable to preventDefault] [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/6662647093133312 --- www/static/assets/plugins/smoothscroll.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/static/assets/plugins/smoothscroll.js b/www/static/assets/plugins/smoothscroll.js index 4dbcf3dcb..0c435c1d3 100644 --- a/www/static/assets/plugins/smoothscroll.js +++ b/www/static/assets/plugins/smoothscroll.js @@ -556,7 +556,7 @@ } addEvent("mousedown", mousedown); - addEvent("mousewheel", wheel); + addEvent("mousewheel", wheel, {passive: false}); addEvent("load", init); }