Skip to content

Commit

Permalink
fix: #1439 engine pointer events
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jun 9, 2021
1 parent 5374678 commit afa4798
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/engine/Input/Pointers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ export class Pointers extends Class {

eventArr.push(pe);
pointer.eventDispatcher.emit(eventName, pe);
this.emit(eventName, pe);
// only with multi-pointer
if (this._pointers.length > 1) {
if (eventName === 'up') {
Expand Down Expand Up @@ -440,6 +441,7 @@ export class Pointers extends Class {

eventArr.push(pe);
pointer.eventDispatcher.emit(eventName, pe);
this.emit(eventName, pe);

// only with multi-pointer
if (this._pointers.length > 1) {
Expand Down Expand Up @@ -488,6 +490,7 @@ export class Pointers extends Class {

eventArr.push(we);
this.at(0).eventDispatcher.emit(eventName, we);
this.emit(eventName, we);
};
}

Expand Down

0 comments on commit afa4798

Please sign in to comment.