Remove setViewDrag function

Unnecessary function only used in the toggle function above.
This commit is contained in:
Samuel Mannehed 2018-07-30 10:46:41 +02:00
parent 0b903af296
commit 2bbd15ccaf
1 changed files with 1 additions and 10 deletions

View File

@ -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();
},