Simon Ser committed 2024-07-02 09:00:30 +02:00
1 parent 331a2f0c4e
commit c69869209f
1 file changed
+1 -1
+1 -1
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) {