mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
fix
This commit is contained in:
parent
05a9f0fe39
commit
ab59c153b3
client/gui
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user