Skip to content
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

Markdown preview scrolls down while typing in editor #119370

Closed
magiblot opened this issue Mar 20, 2021 · 12 comments
Closed

Markdown preview scrolls down while typing in editor #119370

magiblot opened this issue Mar 20, 2021 · 12 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) markdown Markdown support issues

Comments

@magiblot
Copy link

Issue Type: Bug

  1. Open the following document: https://github.com/magiblot/tvision/blob/28246145506f4397c4358fcacd6c2f4d9c89ff8f/README.md

  2. Enable the document preview.

  3. Do any of the following:

    • Type text near the end of the document, e.g. line 708.
    • Scroll the preview near the end of the document. Then go to Settings, search "Markdown" and keep toggling "Markdown > Preview: Scroll Editor With Preview" or "Markdown > Preview: Scroll Preview With Editor".

    The preview will scroll up on each update, and so will the editor until the cursor is about to become out of sight.

To make the issue more evident, set markdown.preview.scrollEditorWithPreview to false.

The issue is reproducible even after disabling extensions with the workbench.action.reloadWindowWithExtensionsDisabled command.

VS Code version: Code 1.54.3 (2b9aebd, 2021-03-15T10:55:24.277Z)
OS version: Linux x64 5.11.7-arch1-1

System Info
Item Value
CPUs Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz (4 x 2400)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: enabled
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 11.63GB (4.63GB free)
Process Argv --no-sandbox --unity-launch --ignore-gpu-blacklist --crash-reporter-id 2993da31-a167-44bc-bba0-3373266d8467
Screen Reader no
VM 0%
DESKTOP_SESSION undefined
XDG_CURRENT_DESKTOP KDE
XDG_SESSION_DESKTOP undefined
XDG_SESSION_TYPE tty
Extensions: none
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30276682
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt875:30259475
pythontbcf:30265426
vscoresta800cf:30276762
vspre833cf:30267465
vsfjg287:30275553
vshan820cf:30276953

@magiblot
Copy link
Author

magiblot commented Mar 20, 2021

Screen recording of the issue:

simplescreenrecorder-2021-03-20_00.26.52.2.mp4

@mjbvz mjbvz self-assigned this Mar 20, 2021
@NeoFantom
Copy link

Almost same problem here. I however found that, this problem is most abvious when you have a big math expression, for example if you cantain this math code in md:

(some very very long text, more than one page)

$\displaystyle \mathrm{softmax}(\mathbf{x}) =
\begin{pmatrix}
\frac{e^{x_1}}{\sum_j e^{x_j}} \\
\vdots \\
\frac{e^{x_n}}{\sum_j e^{x_j}}
\end{pmatrix}$

**then type something here**

(some other very very long text)

Then type in middle, you'll find it scrolling down very fast every time it refreshes.

@willstocks
Copy link

willstocks commented Jul 2, 2021

Adding images seems to make this issue even worse as well... I also find mine both scrolling down, but then also the preview jumping way back up and then back down!

VSCode Markdown Jumping

In this GIF, the Preview is jumping all the way back up to around line 600 (so about 1/5 - 1/4 of the way back up the document). I've tried to highlight the scrolling issue (jumping on the actual file on the left) as well as the weird preview scrolling behaviour.

Persists with extensions disabled or not.

Windows 10 Enterprise 21H1 (19043.1055), VS Code 1.57.1

@devlie

This comment has been minimized.

@evx73

This comment has been minimized.

@willstocks

This comment has been minimized.

@wuhao-wu-jiang

This comment has been minimized.

@ticapix
Copy link

ticapix commented Aug 25, 2021

I have the same issue with 1.59.1 and mermaid diagrams.

Here is a sample content https://pastebin.com/eN0aWK4Q to reproduce issue when editing line 12 for example.

@isidorn
Copy link
Contributor

isidorn commented Aug 27, 2021

I also see this all the time, especially when using github.dev. @mjbvz can you reproduce this? Do you also see this when using github.dev, ruins my whole editing release notes experience.

@heartacker

This comment has been minimized.

@mjbvz
Copy link
Contributor

mjbvz commented Sep 27, 2021

Duplicate of #89930

@mjbvz mjbvz marked this as a duplicate of #89930 Sep 27, 2021
@mjbvz mjbvz closed this as completed Sep 27, 2021
@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) markdown Markdown support issues labels Sep 27, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) markdown Markdown support issues
Projects
None yet
Development

No branches or pull requests

10 participants