小编use*_*683的帖子

NSScrollView覆盖滚动速度 - OSX

我有一个项目正在使用WebView,在小牛队,Safari 7有非常流畅和快速的滚动,我想为我创建复制webView.

以下键允许动量:

NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"YES" forKey:@"AppleMomentumScrollSupported"];
Run Code Online (Sandbox Code Playgroud)

不过,我想的势头进行较长或滚动才能真正快,反正是有,我可以覆盖速度上NSScrollViewWebView?如果可能的话,以最简单的方式?

在iOS中,您可以使用以下控制级别:

webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
Run Code Online (Sandbox Code Playgroud)

但我找不到任何类似的OSX方法.

cocoa smooth scrollview webview nsscrollview

6
推荐指数
0
解决办法
677
查看次数

标签 统计

cocoa ×1

nsscrollview ×1

scrollview ×1

smooth ×1

webview ×1