mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Button state is reset correctly if the left mouse button is released outside the window.
This commit is contained in:
parent
fce069e2c7
commit
5d9ed7ca80
@ -327,6 +327,12 @@ bool CMeterButton::MouseMove(POINT pos)
|
|||||||
}
|
}
|
||||||
else
|
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)
|
if (m_State == BUTTON_STATE_DOWN)
|
||||||
{
|
{
|
||||||
m_State = BUTTON_STATE_NORMAL;
|
m_State = BUTTON_STATE_NORMAL;
|
||||||
|
Loading…
Reference in New Issue
Block a user