diff --git a/Library/MeterButton.cpp b/Library/MeterButton.cpp index 9f42602c..42a07004 100644 --- a/Library/MeterButton.cpp +++ b/Library/MeterButton.cpp @@ -327,6 +327,12 @@ bool CMeterButton::MouseMove(POINT pos) } else { + // If the left button is not down anymore the cliked state needs to be set false + if ((GetKeyState(VK_LBUTTON) & 0x8000) == 0) + { + m_Clicked = false; + } + if (m_State == BUTTON_STATE_DOWN) { m_State = BUTTON_STATE_NORMAL;