Skip to content

Commit

Permalink
MultiListener patch for phetsims/energy-skate-park#322 and #1199
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed May 5, 2021
1 parent c19667e commit 43b77cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/listeners/MultiListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,13 @@ class MultiListener {
sceneryLog && sceneryLog.InputListener && sceneryLog.InputListener( 'MultiListener background interrupt' );
sceneryLog && sceneryLog.InputListener && sceneryLog.push();

this.removeBackgroundPress( this.findBackgroundPress( event.pointer ) );
while ( this._presses.length ) {
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 43b77cd

Please sign in to comment.