From 027be6010d90f80775da7b9439625dbd9c011a2f Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Sat, 1 Jul 2017 01:35:51 +0100 Subject: [PATCH] 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. --- src/openrct2/input.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/openrct2/input.c b/src/openrct2/input.c index 8a964f34f2..2fdfbb4bbb 100644 --- a/src/openrct2/input.c +++ b/src/openrct2/input.c @@ -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;