双屏界面编辑时的抖动问题
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
https://github.com/user-attachments/assets/5bb17970-67c9-4108-a6df-9549dc7c022a
问题1:双屏编辑时,会上下抖动,或持续下滚
问题2:小地图滑块上下拖动时,鼠标与滑块脱离,渐行渐远
见录屏
Steps to reproduce
No response
The Markdown that triggers it
Screenshots, and anything else
No response
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.
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:
- Windows display scaling (Settings > System > Display > Scale), e.g. 100%, 125%, 150%.
- How you got the zoom to 135%: Ctrl+wheel / pinch, or typed in Settings?
- In Markpad's Settings > Editor: are Sticky Headings (滚动时顶部显示标题) and Typewriter Mode (打字机模式) on or off?
- 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.
已经在 Windows 上复现了,上面的问题不用再回答。原来的缩放是把编辑器和预览一起套进 CSS zoom,这让小地图拖动和鼠标错位,开着同步滚动时打字还会不断把编辑器推回去。#1072 换掉了这种做法:现在缩放按字号放大两边的文字,图片和间距保持原大小(和 VS Code 的预览一样),在 140% 下测试,两个问题都没有了。