diff options
author | Samuel Mannehed <samuel@cendio.se> | 2018-07-30 10:46:41 +0200 |
---|---|---|
committer | Samuel Mannehed <samuel@cendio.se> | 2018-07-30 10:46:41 +0200 |
commit | 2bbd15ccaf6e1cfa6dbfb8088e9f35f27a0f3e16 (patch) | |
tree | dd7ccd2d90cc7a3d122b73a6e1d6fef557fa7d9c | |
parent | 0b903af296d6b0626cee53a3b12b0e56d84b02d9 (diff) | |
download | novnc-2bbd15ccaf6e1cfa6dbfb8088e9f35f27a0f3e16.tar.gz |
Remove setViewDrag function
Unnecessary function only used in the toggle function above.
-rw-r--r-- | app/ui.js | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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(); }, |