mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUAC-637: Fix auto-fit disable logic.
This commit is contained in:
@@ -789,7 +789,7 @@ GuacUI.Client.setScale = function(new_scale) {
|
|||||||
GuacUI.Client.auto_fit.checked = (new_scale === GuacUI.Client.min_zoom);
|
GuacUI.Client.auto_fit.checked = (new_scale === GuacUI.Client.min_zoom);
|
||||||
|
|
||||||
// Disable auto-fit if zoom is required
|
// Disable auto-fit if zoom is required
|
||||||
GuacUI.Client.auto_fit.disabled = (GuacUI.Client.min_zoom >= 1);
|
GuacUI.Client.auto_fit.disabled = (GuacUI.Client.min_zoom >= 1 && new_scale === GuacUI.Client.min_zoom);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user