spotted a minor bug in ImageButton I think: it does not respond correctly to setInterceptsMouseClicks(false, false), so will intercept mouse clicks anyway
The following modified hitTest() override fixes it for me (but perhaps there is a better way?)
bool hitTest(int x, int y) override
{
bool allowsClicksOnThisComponent = false;
bool allowsClicksOnChildComponents = false;
getInterceptsMouseClicks(allowsClicksOnThisComponent, allowsClicksOnChildComponents);
if (!allowsClicksOnThisComponent)
{
return false;
}
return ImageButton::hitTest(x, y);
}
btw tested this on Juce 3.3, but the v4 hitTest implementation looks identical
