-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview Pane Scrolls to Top #25
Comments
In the mean time, is there a simple way to disable the Synchronized Scrolling? |
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. |
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 is a real showstopper for me, as i generally type with a large preview and small markdown window. |
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. |
Was this ever solved? Remarkable is the best markdown editor I've found, but this is a show stopper unfortunately :/ |
@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… |
And the ideia of allowing the user to disable auto-scroll. Would that be fine? |
That's intriguing, but wouldn't that keep the live preview firmly at the top while we're editing though? |
I don't know. Will check the code to better answer it. |
Some insight: The scroll up stops if i add a new line ( or a character ) at the top of the document. When I scroll down to the line i was editing and write a few words, the view sticks in line. Until I enter a new line or the line wraps. Then it scrolls up at every new character. If i add a 2nd newline ( or, again, a character ) at the top, i can go back to the line and keep editing while the view stays fixed. rinse and repeat. This is of course, impossible to use, but i hope it sheds some light to what its happening. |
Is anyone working on this issue? It's really annoying and honestly might be a dealbreaker for me. Maybe there's a way to mark the current scroll position in preview and then attempt to restore it after? |
Each time I make an amendment in the left Entry panel, the contents in the preview panel on the right will always be refreshed and re-positioned to show the first line of the Entry panel at its top. This behaviour is very annoying and makes proof reading amendments very inefficient, especially for amendment of very lengthy markdown documents. Whenever the preview screen has to refresh, it is best that only the amendment is reflected without adjusting the display position of the contents in the preview panel. Hope you can fix this else I think it can be a "show stopper". Thank you. |
I also noticed the alignment of content in the left Entry panel and the right Preview panel can be quite off, i.e. they can be quite misaligned. Hope this issue can be fixed also. Thank you.
|
I looked into this a bit - might it be related to what's described here?
It did seem to make it better, though it's hard to tell since the behavior is inconsistent. There was also still a short jump to the top inbetween. Sadly, it also resulted in crashes:
|
I experience this issue as well. The document I am working on includes some slower loading badges (travis ci, coveralls.io and gitter). Removing them makes the situation somewhat better. But perhaps scrolling should not be done until the content was completly loaded? And if rendering takes to long, could it be put into an extra thread? |
I encountered the same issue. Please help :(
|
Sorry to offend...but this bug is really annoying... |
This bug turned out into a "no use" for me :-/ so i think is really important to fix it. |
There is a work around I discovered, simply scrolling (at first with mouse wheel but I believe with paging too) the left hand side brings the right into sync again. |
I'm experiencing the same problem. The preview pane scrolls to the top when I type in the markdown pane. Remarkable 1.87, Linux Mint 19.1 Tessa (Ubuntu 18.04). |
A super sloppy hack that I use for this is to include the following JavaScript code at the bottom: <script> window.scroll(0,200000) </script> This will cause the window to scroll down at all times, which is quite helpful in your initial writing ... You can vary on this theme to get it to scroll to the middle, etc. Note: this only works when it is placed at the end of the document. |
Fix #380 |
<script> window.scroll(0,200000) </script> This trick seems not working for me (nothing happens after I go past the bottom), but I am using the version after bug fix #380. Maybe that's the reason? |
Just start typing again and the review panel goes back to where you are typing, right? |
Review panel seems to live its own life and not being bothered where the edited text is located (but is still dynamically updated if markdown edited is visible beforehand). (context: gentoo using app-editors/remarkable-1.9.0_pre20210320-r3 & python 3.12 & x11-libs/gtksourceview-3.24.11-r1) |
Is there a way to keep the preview pane from scrolling to the top of the document as I'm editing content lower down?
The text was updated successfully, but these errors were encountered: