diff --git a/.gitignore b/.gitignore index 3ebd08b8..aaaabf8c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ build/ sftp-config.json coverage/ temp/ +.idea \ No newline at end of file diff --git a/src/viewer.js b/src/viewer.js index 60e64e8a..de7a3d49 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -826,6 +826,13 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype, return this; }, + hideControls: function() { + beginControlsAutoHide(this); + }, + + showControls: function() { + abortControlsAutoHide(this); + }, /** * @function