|
@@ -121,6 +121,9 @@ void Button::OnClickEnd(const IntVector2& position, const IntVector2& screenPosi
|
|
|
if (pressed_ && button == MOUSEB_LEFT)
|
|
if (pressed_ && button == MOUSEB_LEFT)
|
|
|
{
|
|
{
|
|
|
SetPressed(false);
|
|
SetPressed(false);
|
|
|
|
|
+ // If mouse was released on top of the element, consider it hovering on this frame yet (see issue #1453)
|
|
|
|
|
+ if (IsInside(screenPosition, true))
|
|
|
|
|
+ hovering_ = true;
|
|
|
|
|
|
|
|
using namespace Released;
|
|
using namespace Released;
|
|
|
|
|
|