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,