How can i disable zooming?

1,345 views
Skip to first unread message

Juan David Orozco Betancur

unread,
Mar 6, 2015, 5:42:13 PM3/6/15
to cefs...@googlegroups.com
Hi, im using CefSharp in a personal application and i need to completely disable Zooming, is there a way to do it? Thanks in advance.

Alex Maitland

unread,
Mar 8, 2015, 8:23:17 AM3/8/15
to cefs...@googlegroups.com
Can you be more specific? What version are you using? Which flavor? `WPF`, `WinForms`?

Most features of `CefSharp` are only available if you implement them explicitly. What zooming are you talking about exactly?

Juan David Orozco Betancur

unread,
Mar 8, 2015, 8:45:45 PM3/8/15
to cefs...@googlegroups.com
Hey, Im using CefSharp 37.0.0 on WinForms. I need to disable the browsers zoom, so the pages i visualize always stay the same size. I need to disable it, cause its an application for a TouchScreen computer, so the user cant zoom in or out in any ways.

Thanks in advance.

Alex Maitland

unread,
Mar 9, 2015, 6:17:37 AM3/9/15
to cefs...@googlegroups.com
So specifically you wish to disable pinch zoom?

Have a look at the command line args list e.g. http://peter.sh/experiments/chromium-command-line-switches/#disable-pinch

You may also need to enable touch events see http://peter.sh/experiments/chromium-command-line-switches/#touch-events

Example of other command line args https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Example/CefExample.cs#L30

Juan David Orozco Betancur

unread,
Mar 9, 2015, 9:47:57 AM3/9/15
to cefs...@googlegroups.com
Awesome, the "disable-pinch" command did it. Thank you very much!


On Friday, March 6, 2015 at 5:42:13 PM UTC-5, Juan David Orozco Betancur wrote:
Reply all
Reply to author
Forward
0 new messages