c3ae4542b2
Make sure to account for modalCount properly, rather than just tracking modalCount for the last actor on the stack. Additionally, traverse the popped actors in the reverse order so that onUngrabbed callbacks are called at the proper place in time.