We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65a1c2e commit ddd7e2aCopy full SHA for ddd7e2a
melatonin/helpers/overlay_mouse_listener.h
@@ -90,8 +90,13 @@ namespace melatonin
90
{
91
if (event.originalComponent == root)
92
93
+ // TODO: Sudara is wondering if this callback is needed...
94
mouseExitCallback();
95
}
96
+
97
+ // not sure if there's a better way to ask "is the mouse outside the plugin now?"
98
+ if (!root->contains(event.getEventRelativeTo(root).position))
99
+ outlineComponentCallback (nullptr);
100
101
102
std::function<void (juce::Component* c)> outlineComponentCallback;
0 commit comments