Skip to content

Commit

Permalink
Moving 4177d6c to source to fix onHoverChange event
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Mar 11, 2024
1 parent d923c48 commit 8d5c093
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/framework/ui/uiwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8d5c093

Please sign in to comment.