Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Preview Pane Scrolls to Top #25
Comments
jamiemcg
added
the
bug
label
Aug 10, 2016
pdugas
commented
Aug 19, 2016
|
In the mean time, is there a simple way to disable the Synchronized Scrolling? |
pdugas
commented
Aug 19, 2016
|
I tried commenting out the calls to |
|
No there is no way to disable synchronized scrolling.
^ Yes that's correct. The problem is that every time a change is made, the live preview (web browser) reloads forcing the preview pane back to the top. Trying to create a workaround, potentially changing the HTML content using JavaScript. |
SysuJayce
commented
Aug 23, 2016
|
It is really annoying. Everytime I edit and want to see the preview, it scrolls to the top. Please fix this as soon as possible. |
This was referenced Aug 28, 2016
sbutcher
commented
Oct 31, 2016
|
this is a real showstopper for me, as i generally type with a large preview and small markdown window. |
vphantom
commented
Nov 13, 2016
•
|
Maybe it's my use case, but this seems to happen a lot more in 1.87 now than it did earlier this year. What's more, stopping typing and using the mouse scroll-wheel on the edit pane succeeds immediately in scrolling the preview pane where it should be. So, I'm thinking that maybe the scroll attempts in the preview pane are just fired too early for WebKit's liking, and a simple delay may be all it needs. We'd still be scrolled at the top while typing, but it'd correct itself after, say, 600ms of inactivity (I suspect 500ms to be the threshold). On each keystroke, I even see the scroll handle on the preview pane "blink" to its rightful position for a fraction of a second, which further seems to me like the scrolling is simply done before WebKit forces a jump to top. Just my guess, though. |
rafaellehmkuhl
commented
Nov 15, 2017
|
Was this ever solved? Remarkable is the best markdown editor I've found, but this is a show stopper unfortunately :/ |
vphantom
commented
Nov 15, 2017
|
@rafaellehmkuhl Unfortunately, right now 1.87 is still the latest version. I'd take a look under the hood, but my Python is way too basic. A work-around would likely involve injecting some attributes throughout the generated HTML in order to forcibly scroll the right one into view after each refresh. Not trivial… |
rafaellehmkuhl
commented
Nov 15, 2017
|
And the ideia of allowing the user to disable auto-scroll. Would that be fine? |
vphantom
commented
Nov 15, 2017
|
That's intriguing, but wouldn't that keep the live preview firmly at the top while we're editing though? |
rafaellehmkuhl
commented
Nov 15, 2017
|
I don't know. Will check the code to better answer it. |
pdugas commentedJul 21, 2016
Is there a way to keep the preview pane from scrolling to the top of the document as I'm editing content lower down?