Laserlicht 2 tahun lalu
induk
melakukan
ab59c153b3
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      client/gui/CIntObject.h
  2. 1 1
      client/gui/EventDispatcher.cpp

+ 1 - 0
client/gui/CIntObject.h

@@ -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;

+ 1 - 1
client/gui/EventDispatcher.cpp

@@ -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);