Skip to content

Commit

Permalink
Hide tooltip after ETIE_LEFT_UP (for touch control)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoNTE48 authored and SmallJoker committed Jun 9, 2020
1 parent a21f9bb commit 3cee55f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/guiFormSpecMenu.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 3cee55f

Please sign in to comment.