Created
January 8, 2011 03:55
-
-
Save mbauman/770529 to your computer and use it in GitHub Desktop.
Reduce the zoom increment in WebKit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: WebKit/mac/WebView/WebView.mm | |
=================================================================== | |
--- WebKit/mac/WebView/WebView.mm (revision 75189) | |
+++ WebKit/mac/WebView/WebView.mm (working copy) | |
@@ -3458,7 +3458,7 @@ | |
#define MinimumZoomMultiplier 0.5f | |
#define MaximumZoomMultiplier 3.0f | |
-#define ZoomMultiplierRatio 1.2f | |
+#define ZoomMultiplierRatio 1.06265857f | |
- (BOOL)_canZoomOut:(BOOL)isTextOnly | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See http://mbauman.net/geek/2011/01/07/finer-zoom-increments-in-webkit/ for details.