From: MoNTE48 Date: Thu, 16 Apr 2020 16:49:30 +0000 (+0200) Subject: Hide tooltip after ETIE_LEFT_UP (for touch control) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3cee55f2b4df39fcbf870c2467b51c3d82075874;p=oweals%2Fminetest.git Hide tooltip after ETIE_LEFT_UP (for touch control) --- 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