mirror of
https://github.com/zulip/zulip.git
synced 2026-07-06 21:18:58 +08:00
The previous logic didn't make sense -- the scroll offset in recent topics is not a scroll offset within a message list, so saving it was useless at best. However, it was actually much worse than that, because trying to save the pre-narrow offset while in the process of navigating away from recent topics had the side effect of forcing a reflow, which resulted in very expensive browser rendering to no purpose. Adding this commit to the rest of the series of commits fixing rendering issues when leaving recent topics, this commit results in an impressive 3.05 s decrease in the first renarrow, an ~ 300 ms decrease in the second renarrow and an ~ 500 ms decrease in the third renarrow. There are still further forced reflows which could be reduced in this render path, but they seem to not be as severe. |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| images | ||
| js | ||
| shared | ||
| styles | ||
| templates | ||
| third | ||
| .gitignore | ||