e1fc5fd6e3
## Ticket 6886 Livestream auto-scroll problems ## Issue - `performedInitialScroll` was problematic as it won't allow auto-scroll even when user scrolled back to the bottom. - The dependence on `commentElement` seems to assume a certain comment height? Not sure. ## Approach - Add a scroll listener and stash the last scroll position. - When a message is received, check if it's at the bottom. If yes, maintain that position after the new comment is added. If not, leave as is. - When submitting a comment, always reset to the bottom. |
||
---|---|---|
.. | ||
index.js | ||
view.jsx |