diff --git a/modules/juce_gui_basics/buttons/juce_ImageButton.cpp b/modules/juce_gui_basics/buttons/juce_ImageButton.cpp index 41a850422e..dacad54263 100644 --- a/modules/juce_gui_basics/buttons/juce_ImageButton.cpp +++ b/modules/juce_gui_basics/buttons/juce_ImageButton.cpp @@ -178,6 +178,9 @@ void ImageButton::paintButton (Graphics& g, bool ImageButton::hitTest (int x, int y) { + if (! Component::hitTest (x, y)) // handle setInterceptsMouseClicks + return false; + if (alphaThreshold == 0) return true;