use non passive listeners. close#1382

This commit is contained in:
Anton Lavrenov 2022-10-03 11:59:06 -05:00
parent 3e749e1ea8
commit bc0219700a

View File

@ -456,9 +456,13 @@ export class Stage extends Container<Layer> {
return; return;
} }
EVENTS.forEach(([event, methodName]) => { EVENTS.forEach(([event, methodName]) => {
this.content.addEventListener(event, (evt) => { this.content.addEventListener(
this[methodName](evt); event,
}); (evt) => {
this[methodName](evt);
},
{ passive: false }
);
}); });
} }
_pointerenter(evt) { _pointerenter(evt) {