mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
## 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. |
||
---|---|---|
.. | ||
component | ||
constants | ||
effects | ||
modal | ||
page | ||
redux | ||
scss | ||
util | ||
analytics.js | ||
app.js | ||
comments.js | ||
i18n.js | ||
index.jsx | ||
logWarningConsoleMessage.js | ||
native.js | ||
reducers.js | ||
rewards.js | ||
store.js |