feat(editor): overlay scrollbar, visible only while scrolling (#77)

This commit is contained in:
AlexKucera committed 2026-10-08 13:59:13 +02:00
1 parent 46441438a2
commit ffb80be225
1 file changed
+3
+3
View File
@@ -293,6 +293,9 @@ struct ProseTextView: NSViewRepresentable {
scroll.documentView = tv
scroll.hasVerticalScroller = true
scroll.autohidesScrollers = true
// #77: overlay style — the knob appears during scrolling and fades
// out at rest (iOS-like), instead of always occupying the right edge.
scroll.scrollerStyle = .overlay
scroll.drawsBackground = true
scroll.backgroundColor = NSColor.white
context.coordinator.textView = tv