Skip to content

Conversation

@skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Sep 7, 2018

Fix #292

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
js/script.js Outdated
prefill: function () {
this.ignoreScroll += 1;
if (this.$content.scrollTop() + this.$content.height() > this.$container.height() - 100) {
if (this.$content.scrollTop() + $(window).height() > this.$container.height() + 100) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make it -100 again, so new activities are already loaded, before you reach the end, so ideally you never see the loading circle

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, make sense now. I couldn't figure why it was set to -100!

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen merged commit 2a1cce4 into master Sep 10, 2018
@nickvergessen nickvergessen deleted the 14-scroll-fix branch September 10, 2018 09:16
@nickvergessen
Copy link
Member

Can you prepare a backport on stable14?

@skjnldsv
Copy link
Member Author

Of course! :)

@MorrisJobke
Copy link
Member

@skjnldsv 🏓

@MorrisJobke
Copy link
Member

Ah it was already backported in #295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants