atom/markdown-preview

Scrollbar is reset to top on large markdown files with every render

thmour opened this issue ยท 3 comments

Prerequisites

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

  1. go to https://pastebin.com/raw/bSVNHC6D (The text I work with, with randomized letters)
  2. copy text to atom
  3. press ctl+shift+m to open preview
  4. scroll preview down to bottom
  5. write something at the bottom of the file
  6. 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.

@thmour Thanks for taking the time to contribute! And thanks for filling out the issue template with all the information ๐Ÿ™‚

This sounds like the issue that was fixed in #477. Can you please update Atom to the latest stable version to see if that resolves the issue you are having? ๐Ÿ™‚

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.

@thmour I'm glad it's working for you now ๐Ÿ™‚