Skip to content
Permalink
Browse files

Hide tooltip after ETIE_LEFT_UP (for touch control)

  • Loading branch information
MoNTE48 authored and SmallJoker committed Jun 9, 2020
1 parent a21f9bb commit 3cee55f2b4df39fcbf870c2467b51c3d82075874
Showing with 4 additions and 0 deletions.
  1. +4 −0 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

0 comments on commit 3cee55f

Please sign in to comment.
You can’t perform that action at this time.