Issue:- We are using prosemirror as our text editor. I am implementing a sticky behavior for the Editor using position: sticky
for Comments in my app. The issue I am facing is when I scroll up or down and then initialize the Editor and start typing - it will scroll the content and push it all the way down. On doing some research I see the function scrollRectIntoView
has this logic to do window.scrollBy(x,y)
- this is where the scroll happens…I want to see if we can prevent this behavior for certain cases.
1 Like