diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-12-11 13:16:23 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-12-17 12:51:41 +0100 |
| commit | 47131524871f740cb12e85a47e45ef998d38205c (patch) | |
| tree | e861d244a29da93585f980b84cf93a73539dc498 /gui/src/main | |
| parent | 4480a3a230598dfee0dca3d4f692b3c72812c60b (diff) | |
| download | mullvadvpn-47131524871f740cb12e85a47e45ef998d38205c.tar.xz mullvadvpn-47131524871f740cb12e85a47e45ef998d38205c.zip | |
Set zoom level limits in main process instead of renderer
Diffstat (limited to 'gui/src/main')
| -rw-r--r-- | gui/src/main/index.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 02be33b2d2..a2e9a0560a 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -444,6 +444,9 @@ class ApplicationMain { } catch (error) { log.error(`Failed to load index file: ${error.message}`); } + + // disable pinch to zoom + consumePromise(this.windowController.webContents.setVisualZoomLevelLimits(1, 1)); } } |
