Skip to content

Commit

Permalink
use non passive listeners. close#1382
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Oct 3, 2022
1 parent 3e749e1 commit bc02197
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bc02197

Please sign in to comment.