mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
Avoid infinite recursion with unhandled second touch (#14915)
This commit is contained in:
parent
c489cef875
commit
95a0cc8f9a
@ -319,6 +319,11 @@ bool GUIModalMenu::preprocessEvent(const SEvent &event)
|
||||
}
|
||||
#endif
|
||||
|
||||
// If the second touch arrives here again, that means nobody handled it.
|
||||
// Abort to avoid infinite recursion.
|
||||
if (m_second_touch)
|
||||
return true;
|
||||
|
||||
// Convert touch events into mouse events.
|
||||
if (event.EventType == EET_TOUCH_INPUT_EVENT) {
|
||||
irr_ptr<GUIModalMenu> holder;
|
||||
|
Loading…
Reference in New Issue
Block a user