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;
}
EVENTS.forEach(([event, methodName]) => {
this.content.addEventListener(event, (evt) => {
this[methodName](evt);
});
this.content.addEventListener(
event,
(evt) => {
this[methodName](evt);
},
{ passive: false }
);
});
}
_pointerenter(evt) {