Closed fr0gs closed 2 years ago
Thanks Esteban :)
This is the one problem with synchronous pages, but I have some ideas on how to make this better. I'll give it some thought 👍
Give it a spin now. It maintains the scroll position of the textarea on save, although not the page scroll which I think I'll add if necessary.
I can try to whip something up myself as a PoC if needed.
I think this works appropriately with very little added complexity. It just stores the last scroll position of the textarea and resets it on load. The page scroll is a bit more finicky as it's browser dependent, but also not necessary unless publishing on a smaller screen (like a mobile phone). Let me know what your experience is using this addition and close the issue if you're satisfied :)
Works as a charm! sorry for the delay.
Hello,
When saving a draft post the scroll is reset to the beginning of the text area. It would be nice to keep the scroll position in the line where the cursor was.
Bearblog rocks!
Esteban