mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Avoid infinite recursion with unhandled second touch (#14915)
This commit is contained in:
parent
c489cef875
commit
95a0cc8f9a
1 changed files with 5 additions and 0 deletions
|
@ -319,6 +319,11 @@ bool GUIModalMenu::preprocessEvent(const SEvent &event)
|
||||||
}
|
}
|
||||||
#endif
|
#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.
|
// Convert touch events into mouse events.
|
||||||
if (event.EventType == EET_TOUCH_INPUT_EVENT) {
|
if (event.EventType == EET_TOUCH_INPUT_EVENT) {
|
||||||
irr_ptr<GUIModalMenu> holder;
|
irr_ptr<GUIModalMenu> holder;
|
||||||
|
|
Loading…
Add table
Reference in a new issue