diff options
author | 2021-10-01 09:30:24 +0200 | |
---|---|---|
committer | 2021-10-01 09:30:24 +0200 | |
commit | 858daebaa752903b51cfe748cd40800e1efe31a2 (patch) | |
tree | 9282f23383aeb827e69474ad847bc29452befb3c | |
parent | fix: Switching services via keyboard does not switch focus (#2004) (diff) | |
download | ferdium-app-858daebaa752903b51cfe748cd40800e1efe31a2.tar.gz ferdium-app-858daebaa752903b51cfe748cd40800e1efe31a2.tar.zst ferdium-app-858daebaa752903b51cfe748cd40800e1efe31a2.zip |
fix: Default zoom level is small and increments are huge (#2003)
-rw-r--r-- | src/lib/Menu.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 563db087b..349748506 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -433,8 +433,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
433 | const activeService = getActiveService().webview; | 433 | const activeService = getActiveService().webview; |
434 | const level = activeService.getZoomLevel(); | 434 | const level = activeService.getZoomLevel(); |
435 | 435 | ||
436 | // level 9 =~ +300% and setZoomLevel wouldnt zoom in further | 436 | activeService.setZoomLevel(level + 0.5); |
437 | if (level < 9) activeService.setZoomLevel(level + 1); | ||
438 | }, | 437 | }, |
439 | }, | 438 | }, |
440 | { | 439 | { |
@@ -444,8 +443,7 @@ const _titleBarTemplateFactory = (intl, locked) => [ | |||
444 | const activeService = getActiveService().webview; | 443 | const activeService = getActiveService().webview; |
445 | const level = activeService.getZoomLevel(); | 444 | const level = activeService.getZoomLevel(); |
446 | 445 | ||
447 | // level -9 =~ -50% and setZoomLevel wouldnt zoom out further | 446 | activeService.setZoomLevel(level - 0.5); |
448 | if (level > -9) activeService.setZoomLevel(level - 1); | ||
449 | }, | 447 | }, |
450 | }, | 448 | }, |
451 | { | 449 | { |