Skip to content

some up-to-date changes (bump to 0.2.0) #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix real window visiable area detection
! fix window area detection to window.innerHeight
  • Loading branch information
majioa committed Jan 9, 2020
commit 658a81599eac22ac92f42935cdbe9ae941ddb306
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default class ReactScrollPagination extends Component {
}

scrollHandler = () => {
let scrollBottom = this.scrollTop() + this.windowHeight()
let scrollBottom = this.scrollTop() + window.innerHeight
let triggerBottom = scrollBottom + this.isolate.triggerAt

// 当滚动条距离底部距离小于30像素的时候出发请求操作
Expand Down