像 NSScroller 这样的 iO

发布于 2024-10-08 10:40:56 字数 103 浏览 5 评论 0原文

我正在寻找像 NSScroller 这样的 iOS - 曲目仅在滚动时出现 - 惯性支持 - 相同的外观和感觉。

你知道这样的东西是否已经存在吗?

谢谢和问候,

I am looking an iOS like NSScroller
- the track only appear when scrolling
- inertia support
- same look and feel.

Do you know if something like this already exists?

Thanks and regards,

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Spring初心 2024-10-15 10:40:56

据我所知。除了 NSScroller 之外,您可能还必须继承 NSScrollView 的子类。子类化 NSScroller 将允许您生成仅在滚动期间可见的滚动条的外观和感觉。

惯性滚动必须内置到 NSScrollView 本身中,尽管我知道 Mac 使用触控板并且可以选择在系统偏好设置中打开惯性滚动。

Not that I'm aware of. You would likely have to subclass NSScrollView in addition to NSScroller. Subclassing NSScroller would allow you to produce the look and feel of the scrollbar that is only visible during scrolling.

The inertial scrolling would have to be built into the NSScrollView itself, although I know that Mac's using a trackpad and have the option to turn on inertial scrolling in System Preferences.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文