mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
It is possible for us to scroll user back to top of view if they scroll before the render is complete and we haven't called `revive_current_focus` yet. This fixes it by wrapping the render and revive logic in a single animation frame so that any scroll requests are delayed until we have completed both of them.