mirror of
https://github.com/edubart/otclient.git
synced 2025-12-20 15:37:11 +01:00
some fixes in MainWindow move
This commit is contained in:
@@ -1191,7 +1191,10 @@ bool UIWidget::onMousePress(const Point& mousePos, Fw::MouseButton button)
|
||||
} else
|
||||
m_clickTimer.restart();
|
||||
}
|
||||
return callLuaField<bool>("onMousePress", mousePos, button);
|
||||
|
||||
if(hasLuaField("onMousePress"))
|
||||
return callLuaField<bool>("onMousePress", mousePos, button);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool UIWidget::onMouseRelease(const Point& mousePos, Fw::MouseButton button)
|
||||
|
||||
Reference in New Issue
Block a user