From be169efc373703668d59289daef5b97c9c84c4a5 Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Wed, 13 Mar 2024 14:03:19 -0600 Subject: [PATCH] doc --- js/common/view/ElectromagnetNode.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/common/view/ElectromagnetNode.ts b/js/common/view/ElectromagnetNode.ts index 78d4f80a..2c598e23 100644 --- a/js/common/view/ElectromagnetNode.ts +++ b/js/common/view/ElectromagnetNode.ts @@ -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; } );