#96105Context menu does not hide if cursor is moving
Description
With #94891 the close handling of the context menus got reworked as its previous attempt had some glitches. However, the introduced overhaul had another glitch: The context menu should hide once the cursor has left the context menu for at least 500ms. When the cursor is moved within these 500ms, but is still outside of the context menu, the timeout is reset because the event handler storing the cursor’s position class the “should I close the menu” routine which reset all timeouts.