DeepTutor icon indicating copy to clipboard operation
DeepTutor copied to clipboard

[Bug]:The conflict between scrolling up and streaming output,they scramble for the focus pane

Open Autumn0716 opened this issue 4 months ago • 2 comments

Do you need to file an issue?

  • [x] I have searched the existing issues and this bug is not already filed.
  • [x] I believe this is a legitimate bug, not just a question or feature request.

Describe the bug

In the latest version of DeepTutor, running on macOS 26, when I send a request to the LLM during web chat, it thinks and streams the output. However, while streaming, I cannot effectively scroll up — the streamed output keeps pulling the conversation focus box to the bottom, preventing me from scrolling up to view the original output.

Steps to reproduce

  1. Send a request to LLM
  2. Scroll up to the top of the answer
  3. Bad behaviours,I can not scroll up to my destination

Expected Behavior

I would like to decouple the focus box from the streaming output so I can easily view the original response. Thank you.

Related Module

Frontend/Web

Configuration Used

No response

Logs and screenshots

No response

Additional Information

  • DeepTutor Version:
  • Operating System:
  • Python Version:
  • Node.js Version:
  • Browser (if applicable):
  • Related Issues:

Autumn0716 avatar Jul 20 '26 03:07 Autumn0716

Fixed on dev in d21687f8. Wheel/touch scroll-up already released the pin, but during streaming the rAF re-pinned to the bottom every frame, so scrolling up via the scrollbar thumb or keyboard (PageUp/Home/arrows) got yanked back. The streaming loop now checks whether scrollTop dropped below what it last pinned before re-pinning — with overflow-anchor:none, content growth never lowers scrollTop, so a decrease is unambiguous user intent and the pin releases. Ships in the next release.

pancacake avatar Jul 23 '26 16:07 pancacake

Thanks for your contribution!!

Autumn0716 avatar Jul 24 '26 07:07 Autumn0716