WPF - Mouse Scroll becomes unresponsive

Add Hack to CefSharpApp to allow for setting of disable-features command line arg
Add the example command line args
https://github.com/cefsharp/CefSharp/issues/2408
This commit is contained in:
amaitland
2018-06-14 22:11:56 +10:00
parent 80327e5f35
commit 4be4ebdb1d
2 changed files with 12 additions and 2 deletions
+7 -1
View File
@@ -110,9 +110,15 @@ namespace CefSharp
CefString name = StringUtils::ToNative(kvp->Key);
CefString value = StringUtils::ToNative(kvp->Value);
if (kvp->Key == "disable-features")
{
//Temp workaround so we can set the disable-features command line argument
// See https://github.com/cefsharp/CefSharp/issues/2408
commandLine->AppendSwitchWithValue(name, value);
}
// Right now the command line args handed to the application (global command line) have higher
// precedence than command line args provided by the app
if(!commandLine->HasSwitch(name))
else if(!commandLine->HasSwitch(name))
{
commandLine->AppendSwitchWithValue(name, value);
}
+5 -1
View File
@@ -107,9 +107,13 @@ namespace CefSharp.Example
{
settings.WindowlessRenderingEnabled = true;
//https://github.com/cefsharp/CefSharp/issues/2408
settings.CefCommandLineArgs.Add("disable-features", "TouchpadAndWheelScrollLatching,AsyncWheelEvents");
settings.CefCommandLineArgs.Add("disable-blink-features", "RootLayerScrolling");
//Disable Direct Composition to test https://github.com/cefsharp/CefSharp/issues/1634
//settings.CefCommandLineArgs.Add("disable-direct-composition", "1");
// DevTools doesn't seem to be working when this is enabled
// http://magpcss.org/ceforum/viewtopic.php?f=6&t=14095
//settings.CefCommandLineArgs.Add("enable-begin-frame-scheduling", "1");