From 077237a4df2b576e972ff2d98b9c35175536ccd5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 4 Aug 2019 16:00:50 +0100 Subject: [PATCH] remove core snapping for values set in absolute mode --- desktop/browser_window.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/desktop/browser_window.c b/desktop/browser_window.c index f3b173f22..176fced3d 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -3379,13 +3379,8 @@ browser_window_set_scale(struct browser_window *bw, float scale, bool absolute) bw = bw->parent; } - if (absolute) { - /* ensure "close" to 1 is treated as 1 */ - if (scale > 0.95 && scale < 1.05) { - scale = 1.0; - } - } else { - /* ensure "close" to 1 is treated as 1 */ + if (!absolute) { + /* snap small values around 1.0 */ if ((scale + bw->scale) > (1.01 - scale) && (scale + bw->scale) < (0.99 + scale)) { scale = 1.0;