From 3cee55f2b4df39fcbf870c2467b51c3d82075874 Mon Sep 17 00:00:00 2001 From: MoNTE48 Date: Thu, 16 Apr 2020 18:49:30 +0200 Subject: Hide tooltip after ETIE_LEFT_UP (for touch control) --- src/gui/guiFormSpecMenu.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/guiFormSpecMenu.cpp') diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 49133f1cb..0bb401251 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -3560,6 +3560,10 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text, tooltip_offset_y = 0; if (m_pointer.X > (s32)screenSize.X / 2) tooltip_offset_x = -(tooltip_offset_x + tooltip_width); + + // Hide tooltip after ETIE_LEFT_UP + if (m_pointer.X == 0) + return; #endif // Calculate and set the tooltip position -- cgit v1.2.3