From 04dffd3ab7771d60f72dfa050672e82ffa597d30 Mon Sep 17 00:00:00 2001 From: Anh Do Date: Wed, 27 Nov 2024 23:17:34 -0500 Subject: [PATCH] Ignore dynamic type when changing zoom level --- DuckDuckGo/TextZoomCoordinator.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DuckDuckGo/TextZoomCoordinator.swift b/DuckDuckGo/TextZoomCoordinator.swift index 3aec4d1ae2..b1bfa86f8a 100644 --- a/DuckDuckGo/TextZoomCoordinator.swift +++ b/DuckDuckGo/TextZoomCoordinator.swift @@ -110,8 +110,7 @@ final class TextZoomCoordinator: TextZoomCoordinating { private func applyTextZoom(_ webView: WKWebView) { guard isEnabled else { return } let level = textZoomLevel(forHost: webView.url?.host) - let dynamicTypeScalePercentage = UIFontMetrics.default.scaledValue(for: 1.0) - let viewScale = CGFloat(level.rawValue) / 100 * dynamicTypeScalePercentage + let viewScale = CGFloat(level.rawValue) / 100 webView.applyViewScale(viewScale) }