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
|
#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…
Reference in New Issue
Block a user