CEFSharp touch problems

971 views
Skip to first unread message

pattie103

unread,
Aug 23, 2012, 8:14:58 AM8/23/12
to cefs...@googlegroups.com
Hello,

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.dllCefSharp.Example.dll and CefSharp.Wpf.dll and i place libcef.dlllibEGL.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.

Deyan Varchev

unread,
Aug 23, 2012, 1:43:12 PM8/23/12
to cefs...@googlegroups.com
Hi Patrick,

I'm embedding CefSharp in a WPF app just fine. Are you able to reproduce this into a sample(small) app that you can share? I see that you are using/refering to some plugins - does scrolling not work with some specific site/plugin or in general (with any html)?

Try replicating the problem into a separate sample app - usually this way you'll find what exacly is causing the problem. 

Hope this will help.
Reply all
Reply to author
Forward
0 new messages