From a47fc3ee2573744f69f1f2368aafe74bf7b0ef51 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Tue, 27 Dec 2022 17:59:45 -0300 Subject: [PATCH] fix wheel validate() handling Signed-off-by: Victor Seiji Hariki --- js/lib/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/input.js b/js/lib/input.js index bf67dfd..aab00b3 100644 --- a/js/lib/input.js +++ b/js/lib/input.js @@ -447,7 +447,7 @@ window.addEventListener( _discard = evn.deltaMode; mouse._contexts.forEach(({name, target, validate}) => { - if (!target || (target === evn.target && (!validate || validate(evn)))) { + if ((!target || target === evn.target) && (!validate || validate(evn))) { mouse.listen[name].onwheel.emit({ target: evn.target, delta: evn.deltaY,