Hide tooltip after ETIE_LEFT_UP (for touch control)
authorMoNTE48 <MoNTE48@mail.ua>
Thu, 16 Apr 2020 16:49:30 +0000 (18:49 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Tue, 9 Jun 2020 17:35:25 +0000 (19:35 +0200)
src/gui/guiFormSpecMenu.cpp

index 49133f1cb4dd9148ddee9a696a2cfffd0be4311b..0bb401251360ca98ce4d94ab721e7e73c01d933c 100644 (file)
@@ -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