fix wheel validate() handling
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
84ba327706
commit
a47fc3ee25
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue