Web Inspector: Zoom never goes back to 100% size
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Base / Main.js
index 1c5b15e..2997d0b 100644 (file)
@@ -1818,13 +1818,13 @@ WebInspector._copy = function(event)
 
 WebInspector._increaseZoom = function(event) {
     let currentZoom = InspectorFrontendHost.zoomFactor();
-    InspectorFrontendHost.setZoomFactor(currentZoom * 1.2);
+    InspectorFrontendHost.setZoomFactor(currentZoom + 0.2);
     event.preventDefault();
 };
 
 WebInspector._decreaseZoom = function(event) {
     let currentZoom = InspectorFrontendHost.zoomFactor();
-    InspectorFrontendHost.setZoomFactor(currentZoom * 0.8);
+    InspectorFrontendHost.setZoomFactor(currentZoom - 0.2);
     event.preventDefault();
 };