mirror of
https://github.com/novnc/noVNC.git
synced 2026-05-26 23:19:41 +00:00
Remove setViewDrag function
Unnecessary function only used in the toggle function above.
This commit is contained in:
11
app/ui.js
11
app/ui.js
@@ -1278,16 +1278,7 @@ const UI = {
|
||||
toggleViewDrag() {
|
||||
if (!UI.rfb) return;
|
||||
|
||||
const drag = UI.rfb.dragViewport;
|
||||
UI.setViewDrag(!drag);
|
||||
},
|
||||
|
||||
// Set the view drag mode which moves the viewport on mouse drags
|
||||
setViewDrag(drag) {
|
||||
if (!UI.rfb) return;
|
||||
|
||||
UI.rfb.dragViewport = drag;
|
||||
|
||||
UI.rfb.dragViewport = !UI.rfb.dragViewport;
|
||||
UI.updateViewDrag();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user