Skip to content

Commit

Permalink
MultiListener patch for #1218
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed May 12, 2021
1 parent c0b9a65 commit 4cdb310
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/listeners/MultiListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ define( function( require ) {
sceneryLog && sceneryLog.InputListener && sceneryLog.InputListener( 'MultiListener background interrupt' );
sceneryLog && sceneryLog.InputListener && sceneryLog.push();

self.removeBackgroundPress( self.findBackgroundPress( event.pointer ) );
self.interrupt();

sceneryLog && sceneryLog.InputListener && sceneryLog.pop();
}
Expand Down Expand Up @@ -299,6 +299,10 @@ define( function( require ) {
this.removePress( this._presses[ this._presses.length - 1 ] );
}

while ( this._backgroundPresses.length ) {
this.removeBackgroundPress( this._backgroundPresses[ this._backgroundPresses.length - 1 ] );
}

sceneryLog && sceneryLog.InputListener && sceneryLog.pop();
},

Expand Down

0 comments on commit 4cdb310

Please sign in to comment.