Page 1 of 1

How to disable pinch zoom on MacOS?

PostPosted: Fri Jun 21, 2019 1:24 am
by yangyi2019
I have tried "disable-pinch" command-line flag. But it seems not work.

Re: How to disable pinch zoom on MacOS?

PostPosted: Fri Jun 21, 2019 3:26 pm
by Czarek
How are you setting it? Run cefclient --disable-pinch and see if it works.

Re: How to disable pinch zoom on MacOS?

PostPosted: Mon Jun 24, 2019 5:09 am
by yangyi2019
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.

Re: How to disable pinch zoom on MacOS?

PostPosted: Mon Jun 24, 2019 5:12 am
by ndesktop
Maybe this will help.
Q: --disable-pinch works only in conjunction with --kiosk?