Skip to content

Misc. bug: auto scroll doesn't work in WebUI #12362

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

Closed
sergeysi779 opened this issue Mar 13, 2025 · 5 comments
Closed

Misc. bug: auto scroll doesn't work in WebUI #12362

sergeysi779 opened this issue Mar 13, 2025 · 5 comments

Comments

@sergeysi779
Copy link

Name and Version

version: 4879 (f08f4b3)
built with cc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 for x86_64-linux-gn

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

llama-server -m model.gguf -ngl 999 --host 0.0.0.0

Problem description & steps to reproduce

Auto scroll doesn't seem to work in WebUI. Tested on Firefox 136 and Chrome 134 on Ubuntu 24.04. I have to scroll the page to see the reply.

First Bad Commit

No response

Relevant log output

@sergeysi779
Copy link
Author

To be more specific it works if I don't scroll at all. If I scroll up and then down to bottom of the page then it doesn't scroll automatically.

@woof-dog
Copy link
Contributor

woof-dog commented Mar 25, 2025

@ngxson This is still an issue and appears quickly with regular usage. In addition to what is described above, once the assistant response is finished generating, the UI jumps back up to the user's message. So, maybe there is an issue with scrollToBottom or how it is invoked.

@ngxson
Copy link
Collaborator

ngxson commented Mar 25, 2025

Yes it could be. The scrollToBottom is kinda low-effort implementation and would be nice if someone can re-engineering it.

The problem is that there is a logic to detect if you're scroll to near-bottom or not, and the auto scroll only get activated if you're near the bottom of the page. However, it seems to be inaccurate with different screen sizes.

@github-actions github-actions bot added the stale label Apr 25, 2025
Copy link
Contributor

github-actions bot commented May 9, 2025

This issue was closed because it has been inactive for 14 days since being marked as stale.

@bughunter2
Copy link

This is still a problem.

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

No branches or pull requests

4 participants