mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
GUACAMOLE-152: Handle zoom changes with autoFit correctly.
This commit is contained in:
@@ -741,6 +741,16 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
|
||||
$scope.client.clientProperties.autoFit = false;
|
||||
$scope.client.clientProperties.scale -= 0.1;
|
||||
};
|
||||
|
||||
/**
|
||||
* When zoom is manually set by entering a value
|
||||
* into the controller, this method turns off autoFit,
|
||||
* both in the menu and the clientProperties.
|
||||
*/
|
||||
$scope.zoomSet = function zoomSet() {
|
||||
$scope.menu.autoFit = false;
|
||||
$scope.client.clientProperties.autoFit = false;
|
||||
};
|
||||
|
||||
$scope.changeAutoFit = function changeAutoFit() {
|
||||
if ($scope.menu.autoFit && $scope.client.clientProperties.minScale) {
|
||||
|
Reference in New Issue
Block a user