aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMoNTE48 <MoNTE48@mail.ua>2020-04-16 18:49:30 +0200
committerSmallJoker <SmallJoker@users.noreply.github.com>2020-06-09 19:35:25 +0200
commit3cee55f2b4df39fcbf870c2467b51c3d82075874 (patch)
treec3453b4975144417534a9734b6d1cef96c23ca9e /src
parenta21f9bb7e62b461154a25599a8507ca035fdd463 (diff)
downloadminetest-3cee55f2b4df39fcbf870c2467b51c3d82075874.tar.gz
minetest-3cee55f2b4df39fcbf870c2467b51c3d82075874.tar.bz2
minetest-3cee55f2b4df39fcbf870c2467b51c3d82075874.zip
Hide tooltip after ETIE_LEFT_UP (for touch control)
Diffstat (limited to 'src')
-rw-r--r--src/gui/guiFormSpecMenu.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp
index 49133f1cb..0bb401251 100644
--- a/src/gui/guiFormSpecMenu.cpp
+++ b/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