Skip to content

Commit 3cee55f

Browse files
MoNTE48SmallJoker
MoNTE48
authored andcommittedJun 9, 2020
Hide tooltip after ETIE_LEFT_UP (for touch control)
1 parent a21f9bb commit 3cee55f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/gui/guiFormSpecMenu.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -3560,6 +3560,10 @@ void GUIFormSpecMenu::showTooltip(const std::wstring &text,
35603560
tooltip_offset_y = 0;
35613561
if (m_pointer.X > (s32)screenSize.X / 2)
35623562
tooltip_offset_x = -(tooltip_offset_x + tooltip_width);
3563+
3564+
// Hide tooltip after ETIE_LEFT_UP
3565+
if (m_pointer.X == 0)
3566+
return;
35633567
#endif
35643568

35653569
// Calculate and set the tooltip position

0 commit comments

Comments
 (0)