Commit 1dfa2383 authored by Albert Gräf's avatar Albert Gräf
Browse files

Fixes the regression where the viewport is way too large after an optimal zoom...

Fixes the regression where the viewport is way too large after an optimal zoom operation (cf. #660).
parent d0df37b9
Pipeline #2220 passed with stage
in 240 minutes and 3 seconds
......@@ -6186,7 +6186,7 @@ var optimalzoom_var = {};
// 100 msec are enough for do_optimalzoom to finish.
function gui_canvas_optimal_zoom(cid, h, v) {
clearTimeout(optimalzoom_var[cid]);
optimalzoom_var[cid] = setTimeout(do_optimalzoom, 150, cid, h, v);
optimalzoom_var[cid] = setTimeout(do_optimalzoom, 10, cid, h, v);
}
exports.gui_canvas_optimal_zoom = gui_canvas_optimal_zoom;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment