Pinch To Zoom - Not Enabled?

288 views
Skip to first unread message

Richard Bumm

unread,
Apr 24, 2015, 5:50:22 PM4/24/15
to cefs...@googlegroups.com
Hi all,

I am using the latest version of CefSharp in a WPF application.  I am embedding the browser in XAML when a user control loads.  The site I am connecting to supports pinch-to-zoom when I open the site in a browser, but this is not working in the WPF application.  Are there any settings needed to enable pinch-to-zoom using this library?

Thanks!

Alex Maitland

unread,
Apr 24, 2015, 7:59:53 PM4/24/15
to cefs...@googlegroups.com
Pinch to Zoom isn't supported in the `WPF` version.

Richard Bumm

unread,
Apr 24, 2015, 9:31:20 PM4/24/15
to cefs...@googlegroups.com
Is this a limitation of Chromium itself, or a limitation of the Cef library?

Alex Maitland

unread,
Apr 24, 2015, 9:36:53 PM4/24/15
to cefs...@googlegroups.com
The CEF's `OSR` implementation the `WPF` version uses. The `WinForms` version I believe has support.

(OSR = OffScreen Rendering)

Raimund Bauer

unread,
May 11, 2015, 4:56:37 AM5/11/15
to cefs...@googlegroups.com
Any hints what would be needed to make it work, or is this a general problem of WPF?

I tried to implement it on my own by grabbing all multi-touch events before they're used for anything else, but so far I only got a wildly flickering window...

I was also wondering why CefSharp seems to only use the converted MouseEvents instead of the TouchEvents they originally are.

Alex Maitland

unread,
May 11, 2015, 6:40:37 AM5/11/15
to cefs...@googlegroups.com
`CEF` does not currently support touch for off-screen rendering (in this case `WPF`).

There is an open issue on the `CEF` site, it does look like someone is working on the feature, might take a few months before it's production ready though.

https://bitbucket.org/chromiumembedded/cef/issue/1059
Reply all
Reply to author
Forward
0 new messages