Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Feature request: make the scrollbar width configurable (currently too thin to grab, especially on 4K/HiDPI displays)

Open gooker opened this issue 1 month ago • 6 comments

What problem would this solve?

Is your feature request related to a problem?

Yes. The vertical scrollbar in the UI is extremely thin (roughly 2–4 px visually), and the draggable thumb is almost impossible to hit with a mouse pointer.

This is especially painful on 4K monitors with display scaling (150% / 200%): the scrollbar is rendered at a fraction of a CSS pixel, so users end up "hunting" for the track instead of just grabbing it. Dragging the thumb is effectively unusable, and users are forced to fall back to the mouse wheel or keyboard, which is much slower for long pages / large documents.

Describe the solution you'd like

Please expose a way to configure the scrollbar width, for example:

  • A user-facing setting (e.g. scrollbar.width: 8 | 12 | 16) with a sensible default, or
  • A CSS custom property / theme variable (e.g. --scrollbar-width) that can be overridden by themes and user styles, or
  • Auto-scaling: keep the visual thumb slim but increase the hit area on HiDPI displays.

Ideally the interactive hit area should be wider than the visual thumb (extra transparent padding), so the scrollbar stays visually clean but is still easy to grab.

Describe alternatives you've considered

  • Using the mouse wheel / keyboard (Page Up / Page Down / Home / End) — works, but dragging is still the fastest way to navigate long content.
  • OS-level overlay scrollbars — not applicable here since the app draws its own scrollbar.
  • Zooming the page — degrades the layout and defeats the purpose on a 4K monitor.

Additional context

  • OS: Windows 10/11
  • Display: 4K (3840×2160) with HiDPI scaling enabled
  • The screenshot below shows the scrollbar in a narrow pane: the thumb is a hairline that is practically impossible to target with a mouse.
Image

What would you like?

No response

Has another app got this right?

No response

Which platform is this for?

All platforms

Your Markpad version and how you installed it

No response

gooker avatar Oct 19 '26 07:10 gooker

Done in #978 ,shipping in next release

PathGao avatar Oct 19 '26 13:10 PathGao

2. Done in #978 ,shipping in next release

还是不太够,最好自定义,这个是我自己改的,看起来和之前那个提的差不多,现在还不够宽,,

Image

gooker avatar Oct 20 '26 06:10 gooker

你自己的参数多少?我看情况吧,给一个设置又怪麻烦的。目前取的mac标准,win标准会更宽一些,但是不太想干扰日常视觉

PathGao avatar Oct 20 '26 08:10 PathGao

989里面有多给了一点

PathGao avatar Oct 20 '26 11:10 PathGao

7. 989里面有多给了一点

我自己给了24/30 够宽了,现在更新试了 可以 不用了

gooker avatar Oct 21 '26 00:10 gooker

This is in 2.9.0: https://github.com/sftwrdotdev/Markpad/releases/tag/v2.9.0. Scrollbars in the preview and editor now rest at 8px and grow to 12px under the pointer. There is no width setting.

PathGao avatar Oct 29 '26 03:10 PathGao