Closed ralf3u closed 2 years ago
If I change in preview.conf snippet_pandoc=true
to snippet_pandoc=false
(Edit,Preferences Plugin, Preview, Reload Config, Apply and OK), then the issue does not exist any more. But that does not mean that the issue is fixed.
The scroll position for snippets mode will be unstable until I can figure out how to sync the editor and webview.
For the other documents, the scroll position might be saved/restored with the wrong index when the document is switched. I'll have to review the code and see if I can spot the mistake.
Remark
Because of issue number 29 is nearly solved, there is now an empty preview for txt-documents, so the issue can not be reproduced with txt-documents at the moment. But the issue can be reproduced with long fountain-documents with snippet_fountain=true
.
Today, I can not reproduce the issue when snippet of html and md are false, neither with html, nor with md. For fountain, I can't do tests because of https://github.com/xiota/geanylua-scripts/issues/5. But I think that the issue will also not appear there.
Steps to reproduce
Expectation The content of preview should not change its position during tab-browsing in the editor. It should stay on top.
Remark
Possible solution When tab-browsing on a document with snippet true, then it does not reset something when tab-browsing on a document with snippet false, and that is why the content is changing its position. Evidence: The issue does not appear when tab-browsing only between fountain-documents and html-documents, both very long, and both with snippet false.