Remove setViewDrag function
Unnecessary function only used in the toggle function above.
This commit is contained in:
parent
0b903af296
commit
2bbd15ccaf
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();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue