Different zoom implementation

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Different zoom implementation

Postby TomDigitale » Thu Nov 20, 2014 6:36 am

Hello,

I'm currently trying to figure how zoom works with CEF3 (and chrome). I've seen that setting zoom level to a random level will redraw the content with bigger elements, like bigger fonts, and change the layout accordingly.
Example using chrome:
Image

What I want to achieve is a smartphone/tablet-like pinch-to-zoom (i'm not interested in the gesture, I just want to handle zooming this way), where content is not bigger and layout doesn't change, but act more like if the texture was zoomed in.
Here's what I am talking about:
Image
(warning: may contain photoshopped content)

I guess I could handle it manually using my texture and manage my own "rectview" inside the texture, but I would lose scrollbars and add a lot of complexity to my code.
I'm asking because I know Chrome handle pinch-to-zoom this way, as shown in this video where you can see a zoom at a texture level (without redrawing/changing layout) and scrollbars behaving accordingly:
https://www.youtube.com/watch?v=2P4Xgb9MYXU

Also, I would like to zoom at a certain point in the webpage, like in the video.

So how could I have this kind of zoom with CEF3?

I'm using CEF3 trunk with off-screen rendering on Windows 8/7/Linux.
TomDigitale
Techie
 
Posts: 18
Joined: Fri Mar 14, 2014 6:00 am

Re: Different zoom implementation

Postby magreenblatt » Thu Nov 20, 2014 12:43 pm

Touch support is not implemented for off-screen rendering. See https://code.google.com/p/chromiumembed ... il?id=1059.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 60 guests