catching touch events

690 views
Skip to first unread message

Kevin Andrews

unread,
May 29, 2012, 5:50:36 PM5/29/12
to cefs...@googlegroups.com
Hi guys,
is there any way to enable the catching of touch events with cefsharp?
 
thanks!
 
-Kevin

anthony taranto

unread,
May 29, 2012, 5:56:25 PM5/29/12
to cefs...@googlegroups.com
I'm not sure exactly what you mean. Are you using the WinForms or WPF browser control? Which touch events, specifically, do you need to catch?

Kevin Andrews

unread,
May 29, 2012, 7:37:51 PM5/29/12
to cefs...@googlegroups.com
Hi :)
 
Sry for not explaining well, i was in a rush earlier.
 
Im trying to create a multitouch WPF application with a CEFSharp webview wpf control. Mouse events are beeing registered by the control, and work fine. Touch on the other hand( from microsoft surface or my acer multitouch tablet) dont register at all and are forwarded to the container that the cefsharp.webview is contained in.
 
The WebBrowser control from Microsoft registers everything correctly...the CefSharp WPF Example does too, although i cant see where you register for touch events in the source code for the example on github.
 
Any Ideas?
 
ill gladly post code if you need it.
 
greetings
 
Kevin

anthony taranto

unread,
May 29, 2012, 7:46:51 PM5/29/12
to cefs...@googlegroups.com
I have no experience running CefSharp on a touch screen device.

Here is a list of the WPF events that the WPF browser control is handling:

https://github.com/ataranto/CefSharp/blob/master/CefSharp.Wpf/WebView.h#L59

You will notice that it handles mouse related events (OnMouseDown), but not any touch related events (OnTouchDown). My guess is that handling equivalent touch events and proxying them to CEF as mouse events would allow you to work with web content on a touch screen.
Reply all
Reply to author
Forward
0 new messages