-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Current behavior
When typing something after a large image, the preview scrolls back to the top instead of staying at its current location, so you can see the output of what you type. I don't know if it can be triggered without an image.
Enabling or disabling the "When scrolling, synchronize preview with editor" option, doesn't fix the problem.
Expected behavior
The preview's scrollbar doesn't change position.
Steps to reproduce
- Create a new snippet and paste the following:
# Test
A

B
Here the image is a very high image, higher than your screen's height. (You can use: https://transfer.sh/11osU9/892ea562.png)
- Enable preview and scroll down to the bottom of the preview, so you can see "B".
- Type something after "B".
- The preview's scrollbar scrolls up to the top, so you can't see the result of what you are typing.
Environment
- Version : 0.11.16
- OS Version and name : Arch Linux
I think it might be a good idea to an option to never change the position of the scrollbar of the preview pane, when typing in the editor pane. (No smart algorithm to figure out where the best scrolling position is, but just remembering position before rendering and then restoring that position after re-rendering).

