remove core snapping for values set in absolute mode

This commit is contained in:
Vincent Sanders 2019-08-04 16:00:50 +01:00
parent 13276f5654
commit 077237a4df

View File

@ -3379,13 +3379,8 @@ browser_window_set_scale(struct browser_window *bw, float scale, bool absolute)
bw = bw->parent; bw = bw->parent;
} }
if (absolute) { if (!absolute) {
/* ensure "close" to 1 is treated as 1 */ /* snap small values around 1.0 */
if (scale > 0.95 && scale < 1.05) {
scale = 1.0;
}
} else {
/* ensure "close" to 1 is treated as 1 */
if ((scale + bw->scale) > (1.01 - scale) && if ((scale + bw->scale) > (1.01 - scale) &&
(scale + bw->scale) < (0.99 + scale)) { (scale + bw->scale) < (0.99 + scale)) {
scale = 1.0; scale = 1.0;