diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 11:15:28 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-14 11:15:28 (GMT) |
| commit | fe59ec9659a58bb91fd1d6c7babb26e5584f7cc3 (patch) | |
| tree | c941e47626f17445fec43278895c141626efc994 /src/game/GameView.cpp | |
| parent | b05a847e967f5223b287e85f06b2be382b89fe19 (diff) | |
| download | powder-fe59ec9659a58bb91fd1d6c7babb26e5584f7cc3.zip powder-fe59ec9659a58bb91fd1d6c7babb26e5584f7cc3.tar.gz | |
Only call button actions if the mouse is released inside the button. Fixes #96
Diffstat (limited to 'src/game/GameView.cpp')
| -rw-r--r-- | src/game/GameView.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp index 352d9e5..c03ccf5 100644 --- a/src/game/GameView.cpp +++ b/src/game/GameView.cpp @@ -49,7 +49,7 @@ public: void SetShowSplit(bool split) { showSplit = split; } SplitButtonAction * GetSplitActionCallback() { return splitActionCallback; } void SetSplitActionCallback(SplitButtonAction * newAction) { splitActionCallback = newAction; } - virtual void OnMouseUp(int x, int y, unsigned int button) + virtual void OnMouseUnclick(int x, int y, unsigned int button) { if(isButtonDown) { @@ -58,7 +58,7 @@ public: else if(rightDown) DoRightAction(); } - ui::Button::OnMouseUp(x, y, button); + ui::Button::OnMouseUnclick(x, y, button); } virtual void OnMouseMovedInside(int x, int y, int dx, int dy) |
