Scenario editor UI interaction blocked by map view cursor lock

When holding the right mouse button (Mouse 2) to navigate the map while simultaneously moving objects in the scenario editor, the mouse pointer becomes stuck inside the map view (as shown in the red box in the screenshot below). The pointer remains confined even after releasing Mouse 2, which prevents clicking on any of the editor’s buttons.

Expected result: Releasing Mouse 2 should immediately free the cursor, allowing full interaction with all user interface elements.

Note: This stuck cursor issue can be temporarily resolved by simply clicking on an object or attempting to change an object’s position after releasing Mouse 2.