lbry-desktop/ui/component/livestreamComments
infinite-persistence e1fc5fd6e3
Fix livestream autoscroll
## 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.
2021-08-17 09:44:38 +08:00
..
index.js Livestream: implement Pinned Comments 2021-08-12 10:39:21 +08:00
view.jsx Fix livestream autoscroll 2021-08-17 09:44:38 +08:00