Skip to content

Commit

Permalink
Sim screenProperty => selectedScreenProperty and other screen changes…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Aug 11, 2022
1 parent 2152c0c commit 3cf7185
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/game/view/BuildingGameScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class BuildingGameScreenView extends ScreenView {

phet.joist.display.addInputListener( {
down: event => {
const screen = phet.joist.sim.screenProperty.value;
const screen = phet.joist.sim.selectedScreenProperty.value;
if ( screen && screen.view === this ) {
// Any event on a shape group should handle it.
const challenge = model.challengeProperty.value;
Expand Down
2 changes: 1 addition & 1 deletion js/lab/view/BuildingLabScreenView.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class BuildingLabScreenView extends ScreenView {

phet.joist.display.addInputListener( {
down: event => {
const screen = phet.joist.sim.screenProperty.value;
const screen = phet.joist.sim.selectedScreenProperty.value;
if ( screen && screen.view === this ) {

const isActive = this.layerNode.activePointerProperty.value === event.pointer;
Expand Down

0 comments on commit 3cf7185

Please sign in to comment.