1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Fix #5583: Right click to drag camera after menu (#5748)

Reset the input state to normal after receiving a right click outside of a dropdown.
This commit is contained in:
Luke Lau
2017-07-01 01:35:51 +01:00
committed by Ted John
parent 5db0a05f11
commit 027be6010d

View File

@@ -1250,11 +1250,13 @@ void input_state_widget_pressed(sint32 x, sint32 y, sint32 state, rct_widgetinde
dropdown_cleanup:
window_close_by_class(WC_DROPDOWN);
}
_inputState = INPUT_STATE_NORMAL;
if (state == MOUSE_STATE_RIGHT_PRESS) {
return;
}
_inputState = INPUT_STATE_NORMAL;
gTooltipTimeout = 0;
gTooltipWidget.widget_index = cursor_widgetIndex;