mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Hide tooltip after ETIE_LEFT_UP (for touch control)
This commit is contained in:
parent
a21f9bb7e6
commit
3cee55f2b4
@ -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…
Reference in New Issue
Block a user