swift-cross-ui icon indicating copy to clipboard operation
swift-cross-ui copied to clipboard

[AppKitBackend] Only show ScrollView scrollbar when a scrollbar is required

Open stackotter opened this issue 1 year ago • 0 comments
trafficstars

To copy the behaviour of SwiftUI (which I like in this case), we should only show a ScrollView's scrollbar is the ScrollView's content is actually big enough for scrolling to be possible.

Additionally, I reckon we should use the sleek version of the macOS scroll bar even if a mouse is plugged in. It looks so much less clunky and SwiftUI does it so it's probably not too bad for accessibility. I'm not so set on this second part though, if someone has a good reason it I'm happy for us to stick with the bigger scrollbar when a mouse is present.

stackotter avatar Apr 09 '24 14:04 stackotter