Skip to content
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

Problem with autoscrolling with Milk v2 style #44

Open
lsieradzki opened this issue Aug 31, 2024 · 0 comments
Open

Problem with autoscrolling with Milk v2 style #44

lsieradzki opened this issue Aug 31, 2024 · 0 comments

Comments

@lsieradzki
Copy link

The issue was described here: https://www.phpbb.com/customise/db/extension/mchat_extension/support/topic/185161
The fix was initially applied but then there were some changes in the code and the regression was introduced. Here is what needs to be changed now:

From:

var height = this.container.height();
if (scrollHeight - height - scrollTop <= scrollLeeway) {
  this.container.scrollTop(scrollHeight);
}

To:

var height = this.container.innerHeight();
if (scrollHeight - height - scrollTop <= scrollLeeway) {
  this.container.scrollTop(scrollHeight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant