Skip to content

Commit

Permalink
Fixes the regression where the viewport is way too large after an opt…
Browse files Browse the repository at this point in the history
…imal zoom operation (cf. #660).
  • Loading branch information
agraef committed Jul 13, 2020
1 parent d0df37b commit 1dfa238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pd/nw/pdgui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1dfa238

Please sign in to comment.