Revert "Detect mouse moving out of inventory slot" (#16281)
This reverts commit 81d62d01d119a5d519b923b839ea4c08900e1d1f.
This commit is contained in:
parent
1297ccc537
commit
48ef7fff23
@ -203,10 +203,13 @@ bool GUIInventoryList::OnEvent(const SEvent &event)
|
||||
if (!hovered || hovered->getID() == -1)
|
||||
hovered = m_fs_menu;
|
||||
|
||||
IsVisible = was_visible;
|
||||
|
||||
bool ret = hovered->OnEvent(event);
|
||||
|
||||
// Set visible again *after* processing the event. Otherwise, hovered could
|
||||
// be another GUIInventoryList, which will call this one again, resulting in
|
||||
// an infinite loop.
|
||||
IsVisible = was_visible;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user