removed unnecessary code
This commit is contained in:
parent
47711170c2
commit
8c37dd6a7b
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" ?><svg height="32" id="icon" viewBox="0 0 32 32" width="32" xmlns="http://www.w3.org/2000/svg"><defs><style>.cls-1{fill:none;}</style></defs><title/><path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/><rect class="cls-1" data-name="<Transparent Rectangle>" height="32" id="_Transparent_Rectangle_" width="32"/></svg>
|
||||
|
Before Width: | Height: | Size: 495 B |
16
app/ui.js
16
app/ui.js
|
|
@ -1120,22 +1120,6 @@ const UI = {
|
|||
|
||||
// Do this last because it can only be used on rendered elements
|
||||
UI.rfb.focus();
|
||||
const vncCanvas = document.querySelector('.noVNC_container canvas');
|
||||
|
||||
function resetZoom() {
|
||||
// Reset the transform properties
|
||||
vncCanvas.style.transformOrigin = `0 0`;
|
||||
vncCanvas.style.transform = `scale(1)`;
|
||||
|
||||
// Reset zoom-related variables if they're used
|
||||
UI.rfb.gestures.initialScale = 1;
|
||||
UI.rfb.gestures.currentScale = 1;
|
||||
}
|
||||
|
||||
const resetButton = document.getElementById('resetZoomBtn');
|
||||
if (resetButton) {
|
||||
resetButton.addEventListener('click', resetZoom);
|
||||
}
|
||||
},
|
||||
|
||||
disconnectFinished(e) {
|
||||
|
|
|
|||
3
vnc.html
3
vnc.html
|
|
@ -74,9 +74,6 @@
|
|||
<!-- <input type="image" alt="Drag" src="app/images/drag.svg"
|
||||
id="noVNC_view_drag_button" class="noVNC_button noVNC_hidden"
|
||||
title="Move/Drag Viewport"> -->
|
||||
<input id="resetZoomBtn" type="image" alt="Zoom reset" src="app/images/reset-zoom-icon.svg"
|
||||
id="novnc_zoom_reset" class="noVNC_button"
|
||||
title="Zoom Reset">
|
||||
|
||||
<!--noVNC Touch Device only buttons-->
|
||||
<div id="noVNC_mobile_buttons">
|
||||
|
|
|
|||
Loading…
Reference in New Issue