mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-31 22:05:10 +02:00
fix
This commit is contained in:
parent
05a9f0fe39
commit
ab59c153b3
@ -98,6 +98,7 @@ public:
|
|||||||
void showAll(Canvas & to) override;
|
void showAll(Canvas & to) override;
|
||||||
//request complete redraw of this object
|
//request complete redraw of this object
|
||||||
void redraw() override;
|
void redraw() override;
|
||||||
|
|
||||||
/// returns true if this element is a popup window
|
/// returns true if this element is a popup window
|
||||||
/// called only for windows
|
/// called only for windows
|
||||||
bool isPopupWindow() const override;
|
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( i->receiveEvent(position, AEventsReceiver::LCLICK) || i == nearestElement)
|
||||||
{
|
{
|
||||||
if(isPressed)
|
if(isPressed)
|
||||||
i->clickReleased(position, lastActivated);
|
i->clickPressed(position, lastActivated);
|
||||||
|
|
||||||
if (i->mouseClickedState && !isPressed)
|
if (i->mouseClickedState && !isPressed)
|
||||||
i->clickReleased(position, lastActivated);
|
i->clickReleased(position, lastActivated);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user