How to disable pinch zoom on MacOS?

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

How to disable pinch zoom on MacOS?

Postby yangyi2019 » Fri Jun 21, 2019 1:24 am

I have tried "disable-pinch" command-line flag. But it seems not work.
yangyi2019
Newbie
 
Posts: 2
Joined: Fri Jun 21, 2019 1:20 am

Re: How to disable pinch zoom on MacOS?

Postby Czarek » Fri Jun 21, 2019 3:26 pm

How are you setting it? Run cefclient --disable-pinch and see if it works.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1829
Joined: Sun Nov 06, 2011 2:12 am

Re: How to disable pinch zoom on MacOS?

Postby yangyi2019 » Mon Jun 24, 2019 5:09 am

Czarek wrote:How are you setting it? Run cefclient --disable-pinch and see if it works.

Thank you for your reply.
I write code "command_line->AppendSwitch("disable-pinch");" in the "void ClientAppBrowser::OnBeforeCommandLineProcessing(
const CefString& process_type,
CefRefPtr<CefCommandLine> command_line)" method.
I also run cefclient --disable-pinch, but it doesn't work.
yangyi2019
Newbie
 
Posts: 2
Joined: Fri Jun 21, 2019 1:20 am

Re: How to disable pinch zoom on MacOS?

Postby ndesktop » Mon Jun 24, 2019 5:12 am

Maybe this will help.
Q: --disable-pinch works only in conjunction with --kiosk?
ndesktop
Expert
 
Posts: 366
Joined: Thu Dec 03, 2015 10:10 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 3 guests