1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-21 21:17:49 +02:00
This commit is contained in:
Laserlicht 2023-10-22 00:22:16 +02:00 committed by GitHub
parent 05a9f0fe39
commit ab59c153b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

@ -98,6 +98,7 @@ public:
void showAll(Canvas & to) override;
//request complete redraw of this object
void redraw() override;
/// returns true if this element is a popup window
/// called only for windows
bool isPopupWindow() const override;

@ -213,7 +213,7 @@ void EventDispatcher::handleLeftButtonClick(const Point & position, int toleranc
if( i->receiveEvent(position, AEventsReceiver::LCLICK) || i == nearestElement)
{
if(isPressed)
i->clickReleased(position, lastActivated);
i->clickPressed(position, lastActivated);
if (i->mouseClickedState && !isPressed)
i->clickReleased(position, lastActivated);