Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Odd _eventStack.pop() in EventDispatcher::invokeEvent #1038

Closed Klug76 closed 5 years ago

Klug76 commented 5 years ago

EventDispatcher::invokeEvent missed the _eventStack.pop() call at line 162:

if (event.stopsImmediatePropagation) return true;

it looks like it should be

if (event.stopsImmediatePropagation) { _eventStack.pop(); return true; }

PrimaryFeather commented 5 years ago

Oh wow. That's been overlooked for a long time ...! Thanks a lot for making me aware of this!