You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When registering a listener with add_listener(url), the full set of messages is not received during transitions, and some of them are received early.
To reproduce:
add a listener in init() of about.gui_script: monarch.add_listener(msg.url())
add logging to on_message in the same file:
if message.screen and message.next_screen then
print(message_id .. " screen: " .. message.screen .. " next screen: " .. message.next_screen)
elseif message.screen and message.previous_screen then
print(message_id .. " screen: " .. message.screen .. " prev screen: " .. message.previous_screen)
else
print(message_id)
end
Run the example and click 'ABOUT'
Note that the following is printed immediately:
[monarch_screen_transition_in_finished] screen: [about] prev screen: [menu]
[monarch_screen_transition_out_started] screen: [menu] next screen: [about]
[monarch_screen_transition_out_finished] screen: [menu] next screen: [about]
Click 'OK' to go back, and note that this is printed immediately:
[monarch_screen_transition_out_started] screen: [about] next screen: [menu]
hash: [transition_show_out]
Presumably, monarch_screen_transition_out_finished can't be received by [about] as it's been unloaded but perhaps it should receive monarch_screen_transition_in_started.
The text was updated successfully, but these errors were encountered:
When registering a listener with add_listener(url), the full set of messages is not received during transitions, and some of them are received early.
To reproduce:
monarch.add_listener(msg.url())
Presumably, monarch_screen_transition_out_finished can't be received by [about] as it's been unloaded but perhaps it should receive monarch_screen_transition_in_started.
The text was updated successfully, but these errors were encountered: