mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-03 19:09:41 +00:00
Rename function for adding resize handlers
Moves the one handler for the status out of the function as well. It didn't fit in with the function's old name either.
This commit is contained in:
@@ -146,7 +146,7 @@ var UI;
|
||||
UI.initFullscreen();
|
||||
|
||||
// Setup event handlers
|
||||
UI.setupWindowEvents();
|
||||
UI.addResizeHandlers();
|
||||
UI.addControlbarHandlers();
|
||||
UI.addTouchSpecificHandlers();
|
||||
UI.addExtraKeysHandlers();
|
||||
@@ -154,6 +154,8 @@ var UI;
|
||||
UI.addConnectionControlHandlers();
|
||||
UI.addClipboardHandlers();
|
||||
UI.addSettingsHandlers();
|
||||
document.getElementById("noVNC_status")
|
||||
.addEventListener('click', UI.hideStatus);
|
||||
|
||||
UI.openControlbar();
|
||||
|
||||
@@ -235,13 +237,10 @@ var UI;
|
||||
UI.initSetting('reconnect_delay', 5000);
|
||||
},
|
||||
|
||||
setupWindowEvents: function() {
|
||||
addResizeHandlers: function() {
|
||||
window.addEventListener('resize', UI.applyResizeMode);
|
||||
window.addEventListener('resize', UI.updateViewClip);
|
||||
window.addEventListener('resize', UI.updateViewDrag);
|
||||
|
||||
document.getElementById("noVNC_status")
|
||||
.addEventListener('click', UI.hideStatus);
|
||||
},
|
||||
|
||||
addControlbarHandlers: function() {
|
||||
|
||||
Reference in New Issue
Block a user