Describe the bug
When typing in the Quill editor component, the page scrolls to the top, and then without scrolling if again typed something then it scrolls back down to the bottom then again top . So, its like when the user kept on typing without scrolling or anything the screen goes UP and DOWN and finally stays at the top. Might it be because of updating the firebase doc each time the text gets updated in the editor so we can counter it by debounce or throttle the YJS document. And I have discussed about implementing something similar in issue #1131.
To Reproduce
Steps to reproduce the behavior:
Create a new tutorial.
Start typing in the editor.
Observe the page scrolling to the top.
Well it's happening whenever you type something so to see it type until it scrolls to the bottom or lot's of text.
Expected behavior
Typing in the Quill editor should not cause the page to scroll unexpectedly. The editor should maintain the scroll position wherever we are typing and don't get scrolled on it's own.
When I type something it scrolls to the top and here I kept on typing without scrolling and it goes like to the top and then bottom and then stays at top.
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Additional context
The issue could be related to doc update on each text update so we can use npm packages to debounce the yjs or manually do it.
Or some unintentional re-renders because of useEffect.
Describe the bug When typing in the Quill editor component, the page scrolls to the top, and then without scrolling if again typed something then it scrolls back down to the bottom then again top . So, its like when the user kept on typing without scrolling or anything the screen goes
UP and DOWN
and finally stays at the top. Might it be because of updating the firebase doc each time the text gets updated in the editor so we can counter it by debounce or throttle the YJS document. And I have discussed about implementing something similar in issue #1131.To Reproduce Steps to reproduce the behavior:
Expected behavior Typing in the Quill editor should not cause the page to scroll unexpectedly. The editor should maintain the scroll position wherever we are typing and don't get scrolled on it's own.
Video
https://github.com/scorelab/Codelabz/assets/123815256/42894bcf-0f0c-4cca-bc72-cb22f2e44b5a
When I type something it scrolls to the top and here I kept on typing without scrolling and it goes like to the
top
and thenbottom
and then stays attop
.Desktop (please complete the following information):
Additional context The issue could be related to doc update on each text update so we can use npm packages to debounce the yjs or manually do it. Or some unintentional re-renders because of
useEffect
.