-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
[IDEA] Live Scrolling with Scrolling Buffer #758
Comments
Hey @aymenssf, can you describe the issue in more details? Is the problem that the user can't scroll-up when Khoj is writing out its response? What is the "content disappearing" bit you mentioned? Feel free to share screenshots or small videos if they'll help explaining the issue |
I have this problem, I can't scroll-up when Khoj is writing out its response |
https://github.com/khoj-ai/khoj/assets/79019644/4e450c75-08ca-47a1-972d-e9f993f3f021 |
As a temporal solution, we can inject this code ( genereted by khoj btw :) ) in DevTools console:
|
yep, this is an annoying bug. if the answer is going to be long, i would like to start reading it rather than waiting for the ai to finish the answer |
This has gotten worse with the new UI, theres a strange flicker while the answer is generated, and its impossible to srcoll up to read the answer from the start while khoj is generating it. |
hey @m00nbyt3 , does the code you pasted above work for fixing this bug? I haven't been able to fix this so far in my experimentation from ~2 months ago. If any contributors want to jump in and create a fix, I'll actually compensate you lol. Hopefully it should be a minimal JavaScript-y fix in the file Otherwise, I'll take another look at it next week! |
alright, will give it a try. |
That code worked before the UI upgrade. Ill also give it a try, no need to compensate anything, this is open source :)) |
cool @m00nbyt3 , thats the spirit 👍 😄 |
Thanks, @m00nbyt3 ! Let me know if you run into issues and I'll hop back in. |
are you still working on this? @m00nbyt3 |
Live Scrolling with Scrolling Buffer:
Scrolling Buffer: Implement a buffer that stores a certain number of previously generated lines. This allows users to scroll up and see the recently generated text without affecting the ongoing generation process.
Live Scrolling: As the AI generates new lines, automatically update the displayed content within the buffer. This way, the user can scroll up and review the recent history without the page jumping or content disappearing.
The text was updated successfully, but these errors were encountered: