mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user