Skip to content

双屏界面编辑时的抖动问题 #1071

Closed

Description

@Zman199

Markpad version

2.9.2

How did you install it?

Windows — portable (Markpad_….exe)

OS and version

WIN10 LTSC2021

What happens, and what you expected instead

B.2026-11-08.18-28-02-725_RR.mp4

问题1:双屏编辑时,会上下抖动,或持续下滚

问题2:小地图滑块上下拖动时,鼠标与滑块脱离,渐行渐远

见录屏

Steps to reproduce

No response

The Markdown that triggers it

Screenshots, and anything else

No response

Activity

  1. PathGao commented on Nov 8, 2026

    @PathGao
    Collaborator

    Thanks for the recording — both show up clearly in it.

    Could you try one thing: set the zoom back to 100% (the "135%" in the status bar), then repeat both steps in split view? If the minimap drag stays under the mouse and typing no longer bounces, that confirms where the problem is.

    The technical side — you can skip this

    In split view the zoom is applied around the editor as well as the preview, and the editor's minimap measures mouse movement without that zoom, so the slider runs ahead of the pointer. The bouncing while typing looks like the two panes correcting each other's scroll position after each keystroke when the cursor sits just below the pinned headings at the top of the editor. Neither is verified on a Windows machine yet.

  2. PathGao commented on Nov 8, 2026

    @PathGao
    Collaborator

    I tried to reproduce this on a Mac (split view, sync scroll on, zoom 100%/130%/140%, a short window) and the editor settles after the first keystroke instead of bouncing. So something in your setup is different. Could you tell me:

    1. Windows display scaling (Settings > System > Display > Scale), e.g. 100%, 125%, 150%.
    2. How you got the zoom to 135%: Ctrl+wheel / pinch, or typed in Settings?
    3. In Markpad's Settings > Editor: are Sticky Headings (滚动时顶部显示标题) and Typewriter Mode (打字机模式) on or off?
    4. Two quick tries in split view, typing a few letters on a line just under the pinned headings:
      • with Sticky Headings (滚动时顶部显示标题) turned off, does it still bounce?
      • with Sync Scroll (同步滚动, the link icon in the title bar) turned off, does it still bounce?

    The answers to 4 tell me which of the two is causing it.

  3. PathGao commented on Nov 8, 2026

    @PathGao
    Collaborator

    已经在 Windows 上复现了,上面的问题不用再回答。原来的缩放是把编辑器和预览一起套进 CSS zoom,这让小地图拖动和鼠标错位,开着同步滚动时打字还会不断把编辑器推回去。#1072 换掉了这种做法:现在缩放按字号放大两边的文字,图片和间距保持原大小(和 VS Code 的预览一样),在 140% 下测试,两个问题都没有了。

  4. added a commit that references this issue on Nov 11, 2026
    cfb4e65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions