summaryrefslogtreecommitdiffstats
path: root/src/ui/control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/control.cpp')
-rw-r--r--src/ui/control.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/control.cpp b/src/ui/control.cpp
index 81893d5..6ac82bc 100644
--- a/src/ui/control.cpp
+++ b/src/ui/control.cpp
@@ -323,7 +323,7 @@ bool CControl::EventProcess(const Event &event)
if ( event.type == EVENT_MOUSE_BUTTON_DOWN && event.mouseButton.button == 1)
{
- if ( Detect(event.pos) )
+ if ( Detect(event.mouseButton.pos) )
{
m_bCapture = true;
SetState(STATE_PRESS);
@@ -332,7 +332,7 @@ bool CControl::EventProcess(const Event &event)
if ( event.type == EVENT_MOUSE_MOVE && m_bCapture )
{
- if ( Detect(event.pos) )
+ if ( Detect(event.mouseMove.pos) )
{
SetState(STATE_PRESS);
}