Scrollbar is reset to top on large markdown files with every render
thmour opened this issue ยท 3 comments
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=โ&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
I use atom with markdown-preview installed in Centos7.
When the file is too long to fit in the screen, every time when I edit something
in the file, the preview resets to top and I can't see what I wrote.
Steps to Reproduce
- go to https://pastebin.com/raw/bSVNHC6D (The text I work with, with randomized letters)
- copy text to atom
- press ctl+shift+m to open preview
- scroll preview down to bottom
- write something at the bottom of the file
- wait for preview to render the new text
Expected behavior: Scrollbar has the same relative position
Actual behavior: Scrollbar is reset to top and I can't see what I wrote at the end of the file
Reproduces how often: Every time
Versions
Linux ... 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Atom : 1.20.0
Electron: 1.6.9
Chrome : 56.0.2924.87
Node : 7.4.0
apm 1.18.4
npm 3.10.10
node 6.9.5 x64
python 2.7.5
git 1.8.3.1
Additional Information
With a scale of 0-100% for top-bottom of file in the preview. In normal mode when I am at 80-100% the scroll goes to 0%, in safe mode it goes to around 10-20%.
I also used markdown-scroll-sync to try to fix this problem, every time i write, the scroll is at good place, but when I stop writing, the scrollback goes again back to top.
Thanks, I used the beta version and the problem was solved. I also disabled the markdown-scroll-sync, because that has problems with the bottom scrolling now.