1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 16:36:47 +02:00

forum: fix zepto selector in PostStream

This commit is contained in:
David Sevilla Martin
2020-03-11 18:04:38 -04:00
parent 35b91c98da
commit f0140c6656
5 changed files with 38312 additions and 88 deletions

11945
js/dist/admin.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

26449
js/dist/forum.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -309,7 +309,7 @@ class PostStream<T extends PostStreamProps = PostStreamProps> extends Component<
} }
if (this.visibleEnd < this.count()) { if (this.visibleEnd < this.count()) {
const $item = this.$(`.PostStream-item[data-index=${this.visibleEnd - 1}]`); const $item = this.$(`.PostStream-item[data-index="${this.visibleEnd - 1}"]`);
if ($item.length && $item.offset().top + $item.outerHeight(true) < viewportTop + viewportHeight + loadAheadDistance) { if ($item.length && $item.offset().top + $item.outerHeight(true) < viewportTop + viewportHeight + loadAheadDistance) {
this.loadNext(); this.loadNext();