SEBWIN-842: Ensured pinch zooming also respects the zooming configuration value.
This commit is contained in:
parent
0777644f0e
commit
787c84cc0e
1 changed files with 5 additions and 0 deletions
|
@ -336,6 +336,11 @@ namespace SafeExamBrowser.Browser
|
|||
cefSettings.PersistSessionCookies = !settings.DeleteCookiesOnStartup || !settings.DeleteCookiesOnShutdown;
|
||||
cefSettings.UserAgent = InitializeUserAgent();
|
||||
|
||||
if (!settings.AllowPageZoom)
|
||||
{
|
||||
cefSettings.CefCommandLineArgs.Add("disable-pinch");
|
||||
}
|
||||
|
||||
if (!settings.AllowPdfReader)
|
||||
{
|
||||
cefSettings.CefCommandLineArgs.Add("disable-pdf-extension");
|
||||
|
|
Loading…
Add table
Reference in a new issue