I just updated my juce library from 1.53.94 to 1.54.27 and i noticed that ButtonClicked is no longer called on Reaper 64. [latest version 4.12, on Mac OSX 10.6]
It must come from the Component::isMouseOver() function that used to return true before and that returns false now.
if (includeChildren)
{
Desktop& desktop = Desktop::getInstance();
for (int i = desktop.getNumMouseSources(); --i >= 0;)
{
Component* const c = desktop.getMouseSource(i)->getComponentUnderMouse();
if (isParentOf (c) && c->flags.mouseOverFlag) // (mouseOverFlag checked in case it's being dragged outside the comp)
return true;
}
}
return false;
It seems to me that the coordinates checked in reallyContains are wrong.
When i check twice the coordinates for a same button, the values are completly different.
So I guess they are relative to something but not to the component.
Hmm, sounds like it’s being offset by the size of a title bar… I think I may actually have changed the way it converts global->local coords since 1.54 though - could be worth trying the modules branch in case this is already sorted.
No, it’s not!
I updated my Juce library to 2.0.16, and the problem is still there!
I hoped it would be ok by now!
It’s been more than two months that I noticed it.
Hey Jules, are you planning to fix it soon ?