We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d34786 commit 27392d6Copy full SHA for 27392d6
melatonin_inspector.h
@@ -420,11 +420,10 @@ namespace melatonin
420
if (focusedComponent == nullptr)
421
return;
422
423
- // This gets sent all components, even subcomponents of the inspector
424
- // (which will result in the selection being cleared).
425
- // I tried filtering those out for cleaner UX,
426
- // but it caused glitchy incorrectness in focus selections
427
- selectComponent (focusedComponent);
+ // This gets sent all components, even subcomponents of the inspector itself
+ // (which is undesirable since we're not dogfoodiing).
+ if (focusedComponent->getPeer() == root->getPeer())
+ selectComponent (focusedComponent);
428
}
429
430
void timerCallback() override
0 commit comments