Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 13, 2024
1 parent 4728547 commit be169ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/common/view/ElectromagnetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default class ElectromagnetNode extends FELMovableNode {
this.cursor = ( dragEnabled && inputEnabled ) ? 'pointer' : null;
} );

// Because backgroundNode is added to the scene graph elsewhere, ensure that it is draggable only if this Node is draggable.
this.inputEnabledProperty.link( inputEnabled => {
this.backgroundNode.inputEnabledProperty.value = inputEnabled;
} );
Expand Down

0 comments on commit be169ef

Please sign in to comment.