I'm having some trouble with touch scrolling in the CEFSharp project.
When i test the scrolling with the example application of the project there no are problems, the scrolling work good.
I'm currently building a WPF CSharp application that uses this project as its web browser. When i make a reference in my own application and create a browser object the scrolling does not work anymore.
First i make an reference to CefSharp.dll, CefSharp.Example.dll and CefSharp.Wpf.dll and i place libcef.dll, libEGL.dll and libGLESv2.dll in my Debug and Release folders. (The last three dll are from the CEF project )
Then i initialize my browser like this.
//Create Plugins folder
if (!Directory.Exists(@".\\Plugins"))
Directory.CreateDirectory(@".\\Plugins");
//Init CefSharp
CefSettings = new CefSharp.Settings();
CefSettings.LogFile = @".\\logs\\CEF_log.txt";
CefSettings.LogSeverity = CefSharp.LogSeverity.Info;
do
{
CefSharp.CEF.Initialize(CefSettings);
}
while (!CefSharp.CEF.IsInitialized);
// Create Browser Settings
BSettings = new CefSharp.BrowserSettings();
BSettings.WebSecurityDisabled = true;
BSettings.PluginsDisabled = false;
BSettings.FileAccessFromFileUrlsAllowed = true;
BSettings.JavaScriptDisabled = false;
BSettings.XssAuditorEnabled = false;
BSettings.AcceleratedPluginsDisabled = false;
BSettings.DeveloperToolsDisabled = false;
//Create Browser
WbBrowser = new CefSharp.Wpf.WebView("about:blank", BSettings);
And i then get the browser object as an UIElement and place it in my Grid object like this.
this.BrowserHost.Children.Add(browser.GetUi());
I test both these application on the same Windows to make sure its not the computer that is the problem.
But as i said before the scrolling does not work now, so am i embedding the browser wrong in my form ? Or is this a common problem with people who embed the CEFSharp project in there own project ?
Thanks in advance.