What is the problem?
When opening or closing Realtime Preview, where you had scrolled to in the left-hand pane is not preserved. You are either returned to the top of the page or to a different part of the page.
This could be disruptive if you open/close RTP part-way through an editing session.
My observations have been:
- Without CodeMirror (syntax highlighting), when you close or open RTP you are returned to the top of the page
- With CodeMirror:
- when you close RTP you are scrolled to a different part of the page
- when you open RTP you are scrolled to the top of the page
Steps to reproduce problem
- Edit a relative large page (e.g. https://en.wikipedia.beta.wmflabs.org/w/index.php?title=Cat&action=edit)
- Scroll down to some part of the wikitext and make a note of where you are
- Press "Preview" to open RTP
Expected behavior: You remain where you were in the wikitext in step 2
Observed behavior: You a returned to the top of the wikitext
Environment
Browser: Firefox 91
Wiki(s): https://en.wikipedia.beta.wmflabs.org MediaWiki 1.39.0-alpha (7fa8cf0) 04:30, 30 June 2022.
Editor WikiEditor 0.5.3 (b815fa6) 12:15, 28 June 2022.
Skins Vector 2022, Vector 2010, Minerva.