Skip to content

Commit 86b402f

Browse files
committed
fix/Increase infinite scroll offset
1 parent 40f547f commit 86b402f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/javascript/controllers/infinite_scroll_controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default class extends Controller {
6060
const html = document.documentElement
6161
const height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight)
6262

63-
return (window.pageYOffset >= (height - window.innerHeight - 80))
63+
return (window.pageYOffset >= (height - window.innerHeight - 200))
6464
}
6565

6666
get nextPageAnchor() {

0 commit comments

Comments
 (0)