mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Hide tooltip after ETIE_LEFT_UP (for touch control)
This commit is contained in:
parent
a21f9bb7e6
commit
3cee55f2b4
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue