mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-901: Allow client display to be scrolled via properties.
This commit is contained in:
@@ -318,6 +318,18 @@ angular.module('client').directive('guacClient', [function guacClient() {
|
|||||||
client.setClipboard(data);
|
client.setClipboard(data);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
* SCROLLING
|
||||||
|
*/
|
||||||
|
|
||||||
|
$scope.$watch('clientProperties.scrollLeft', function scrollLeftChanged(newValue, oldValue) {
|
||||||
|
main.scrollLeft += newValue - oldValue;
|
||||||
|
});
|
||||||
|
|
||||||
|
$scope.$watch('clientProperties.scrollTop', function scrollTopChanged(newValue, oldValue) {
|
||||||
|
main.scrollTop += newValue - oldValue;
|
||||||
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* CONNECT / RECONNECT
|
* CONNECT / RECONNECT
|
||||||
*/
|
*/
|
||||||
|
@@ -83,6 +83,22 @@ angular.module('client').factory('ClientProperties', [function defineClientPrope
|
|||||||
*/
|
*/
|
||||||
this.emulateAbsoluteMouse = template.emulateAbsoluteMouse || true;
|
this.emulateAbsoluteMouse = template.emulateAbsoluteMouse || true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The relative Y coordinate of the scroll offset of the display within
|
||||||
|
* the client element.
|
||||||
|
*
|
||||||
|
* @type Number
|
||||||
|
*/
|
||||||
|
this.scrollTop = template.scrollTop || 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The relative X coordinate of the scroll offset of the display within
|
||||||
|
* the client element.
|
||||||
|
*
|
||||||
|
* @type Number
|
||||||
|
*/
|
||||||
|
this.scrollLeft = template.scrollLeft || 0;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return ClientProperties;
|
return ClientProperties;
|
||||||
|
Reference in New Issue
Block a user