1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

Merge pull request #3389 from haiwen/resolve-list-bug

Solve browser scaling bugs
This commit is contained in:
杨顺强
2019-04-29 14:48:24 +08:00
committed by GitHub

View File

@@ -141,7 +141,7 @@ class LibContentContainer extends React.Component {
onItemsScroll = (e) => { onItemsScroll = (e) => {
let target = e.target; let target = e.target;
if (target.scrollTop + document.documentElement.clientHeight - target.offsetTop >= target.scrollHeight) { if (target.scrollTop + target.clientHeight + 1 >= target.scrollHeight) {
this.props.onListContainerScroll(); this.props.onListContainerScroll();
} }
} }