Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
f475ec19cd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/juce_appframework/gui/components/buttons/juce_Button.cpp

+ 1
- 1
src/juce_appframework/gui/components/buttons/juce_Button.cpp View File

@@ -230,7 +230,7 @@ Button::ButtonState Button::updateState (const MouseEvent* const e) throw()
const bool over = reallyContains (mx, my, true);
const bool down = isMouseButtonDownAnywhere();
if ((down && (over || (triggerOnMouseDown && state == buttonDown))) || isKeyDown)
if ((down && (over || (triggerOnMouseDown && buttonState == buttonDown))) || isKeyDown)
state = buttonDown;
else if (over)
state = buttonOver;


Loading…
Cancel
Save