Description
In CEF 3 we can enable touch events by setting the "touch-events" command line switch [2] to "auto" or "enabled", it can be done through CefApp::OnBeforeCommandLineProcessing() [3], we need to implement the CefApp API.
See Issue 786 "Touch support in CEF1 and CEF3 does not match Chromium browser" [4] in the CEF Issue Tracker for more details on touch screen support in CEF 1 and CEF 3.
See also RegisterTouchWindow() [5] on the MSDN, it might be required to call this function for the main window.
Apparently multitouch works in the cefclient sample application in CEF 3, reported in this topic "Windows touch scroll acting as mouse click event" [6] on the CEF forum. Can someone confirm that?
[1] https://code.google.com/p/chromiumembedded/source/browse/trunk/cef1/libcef/brows
er_webkit_init.cc?r=1256#51
[2] https://code.google.com/p/chromium/codesearch#chromium/src/ui/base/ui_base_switc
hes.cc&sq=package:chromium&type=cs&l=66&rcl=1369373180
[3] https://code.google.com/p/chromiumembedded/source/browse/trunk/cef3/include/cef_
app.h?r=1256#117
[4] https://code.google.com/p/chromiumembedded/issues/detail?id=786
[5] http://msdn.microsoft.com/en-us/library/windows/desktop/dd317326(v=vs.85).aspx
[6] http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=10321
Original issue reported on code.google.com by [email protected]
on 24 May 2013 at 4:03