mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 17:49:21 +02:00
change miniwindow moving
This commit is contained in:
parent
c07dd1066b
commit
578078007b
@ -129,8 +129,6 @@ bool UIWindow::onMouseRelease(const Point& mousePos, Fw::MouseButton button)
|
||||
{
|
||||
if(m_moving) {
|
||||
m_moving = false;
|
||||
if(m_movePolicy == FREE_UPDATED_MOVE)
|
||||
updateParentLayout();
|
||||
return true;
|
||||
}
|
||||
return UIWidget::onMouseRelease(mousePos, button);
|
||||
@ -140,6 +138,8 @@ bool UIWindow::onMouseMove(const Point& mousePos, const Point& mouseMoved)
|
||||
{
|
||||
if(m_moving) {
|
||||
moveTo(mousePos - m_movingReference);
|
||||
if(m_movePolicy == FREE_UPDATED_MOVE)
|
||||
updateParentLayout();
|
||||
return true;
|
||||
}
|
||||
return UIWidget::onMouseMove(mousePos, mouseMoved);
|
||||
|
Loading…
x
Reference in New Issue
Block a user