projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a21f9bb
)
Hide tooltip after ETIE_LEFT_UP (for touch control)
author
MoNTE48
<MoNTE48@mail.ua>
Thu, 16 Apr 2020 16:49:30 +0000
(18:49 +0200)
committer
SmallJoker
<SmallJoker@users.noreply.github.com>
Tue, 9 Jun 2020 17:35:25 +0000
(19:35 +0200)
src/gui/guiFormSpecMenu.cpp
patch
|
blob
|
history
diff --git
a/src/gui/guiFormSpecMenu.cpp
b/src/gui/guiFormSpecMenu.cpp
index 49133f1cb4dd9148ddee9a696a2cfffd0be4311b..0bb401251360ca98ce4d94ab721e7e73c01d933c 100644
(file)
--- 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