mirror of
https://github.com/edubart/otclient.git
synced 2025-10-25 16:54:17 +02:00
Fix UIWidget::propagateOnMouseMove repeatedly adding the mouse receiver to the list (#1195)
This commit is contained in:
@@ -1717,9 +1717,9 @@ bool UIWidget::propagateOnMouseMove(const Point& mousePos, const Point& mouseMov
|
|||||||
if(child->isExplicitlyVisible() && child->isExplicitlyEnabled() && child->containsPoint(mousePos))
|
if(child->isExplicitlyVisible() && child->isExplicitlyEnabled() && child->containsPoint(mousePos))
|
||||||
child->propagateOnMouseMove(mousePos, mouseMoved, widgetList);
|
child->propagateOnMouseMove(mousePos, mouseMoved, widgetList);
|
||||||
|
|
||||||
widgetList.push_back(static_self_cast<UIWidget>());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
widgetList.push_back(static_self_cast<UIWidget>());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user