Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set NSScrollView to not auto-hide scroller?

When you stop to scroll an NSScrollView, it will auto-hide the scroller.
How can I disable that?
I can not find any property that can change this.

like image 625
johnny_mess Avatar asked Nov 25 '25 13:11

johnny_mess


1 Answers

The autohidesScrollers property of NSScrollView is not taken into account for scroll views that use elastic scrolling (the default).
To permanantly make the scrollers visible, you could set the scrollerStyle to .legacy and autohidesScrollers to false.

self.collectionView.enclosingScrollView?.scrollerStyle = .legacy
self.collectionView.enclosingScrollView?.autohidesScrollers = false
like image 192
Thomas Zoechling Avatar answered Nov 28 '25 17:11

Thomas Zoechling



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!