Hide tooltip after ETIE_LEFT_UP (for touch control)

master
MoNTE48 2020-04-16 18:49:30 +02:00 committed by SmallJoker
parent a21f9bb7e6
commit 3cee55f2b4
1 changed files with 4 additions and 0 deletions

View 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