mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
Solve browser scaling bugs
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user