Merge pull request #115295 from Akosmo/hover-treeitem-fix

Reset drag unfold timer when mouse exits Tree
This commit is contained in:
Thaddeus Crews 2026-01-26 15:01:54 -06:00
commit 43fbc539dd
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -5001,6 +5001,9 @@ void Tree::_notification(int p_what) {
case NOTIFICATION_MOUSE_EXIT: {
is_mouse_hovering = false;
if (enable_drag_unfolding && drop_mode_over) {
_reset_drop_mode_over();
}
// Clear hovered item cache.
if (cache.hover_header_row || cache.hover_item != nullptr) {
cache.hover_header_row = false;