[英]C# WPF Smooth scrolling for cefsharp
I'm using Cefsharp v79 (latest version) in my WPF application and I need to have smooth scroll for cefsharp pages我在我的 WPF 应用程序中使用 Cefsharp v79(最新版本),我需要平滑滚动 cefsharp 页面
This is how my code looks like:这就是我的代码的样子:
<Grid>
cefsharp:ChromiumWebBrowser Address="https://stackoverflow.com/"/>
</Grid>
I tried我试过了
ScrollViewer.CanContentScroll="False"
But it did not work, Any solutions?但是没有用,有什么解决办法吗?
Converted @EternalC0der's comment into an answer so it's easier to read and implement.将@EternalC0der 的评论转换为答案,以便更容易阅读和实施。
The following code passes disable-threaded-scrolling
argument to the browser:以下代码将
disable-threaded-scrolling
参数传递给浏览器:
CefSettings s = new CefSettings();
s.CefCommandLineArgs.Add("disable-threaded-scrolling", "1");
Cef.Initialize(s);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.