diff --git a/src/framework/ui/uiwidget.cpp b/src/framework/ui/uiwidget.cpp index 990a2c1..1e83524 100644 --- a/src/framework/ui/uiwidget.cpp +++ b/src/framework/ui/uiwidget.cpp @@ -1598,6 +1598,11 @@ void UIWidget::onHoverChange(bool hovered) else g_mouse.popCursor(m_cursor); } + + if (isDisabled() && !hovered && g_mouse.isCursorChanged()) { + g_mouse.popCursor(m_cursor); + } + callLuaField("onHoverChange", hovered); }