mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 10:42:36 +03:00
remove core snapping for values set in absolute mode
This commit is contained in:
parent
13276f5654
commit
077237a4df
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user