Simon Ser 2024-07-02 09:00:30 +02:00
parent 331a2f0c4e
commit c69869209f

View file

@ -11,7 +11,7 @@ export default class ScrollManager extends Component {
isAtBottom() {
let target = this.props.target.current;
return target.scrollTop >= target.scrollHeight - target.offsetHeight;
return Math.abs(target.scrollHeight - target.clientHeight - target.scrollTop) <= 10;
}
saveScrollPosition(scrollKey) {