Stories: a teardown that times out cannot undo the restored view

directorSettled now tells a timeout from settlement, and on a timeout
revokes the scene's layer cleanup still in flight before Close puts the
view back.
This commit is contained in:
Sameh Khamis committed 2026-11-16 13:31:51 -08:00
1 parent 0a39b05cdb
commit 4fa80fb18c
5 files changed
+105 -8

No files matched your search

+3 -1
View File
@@ -756,7 +756,9 @@ globe, including when it opens from a story link without a hash.
Close dismisses the Stories screens and keeps the keyboard and microphone
guards until the previous view is back. The director is waited
on until idle (`SceneDirector.whenIdle`: no run and no pending LOAD, seek or
interaction; at most 15 s). The camera and world clock are put back (a clock
interaction; at most 15 s). When the 15 s run out, the scene's layer cleanup
still under way is revoked (`SceneDirector.revokeSceneRelease`) before
anything is put back, so it cannot turn off a layer Close restores. The camera and world clock are put back (a clock
nothing moved while Stories was open, with no jump and the same mode and
rate, is left alone), unless a
camera owner took over during the wait (a drag on the globe, a layer's