summaryrefslogtreecommitdiff
path: root/core/rfb.js
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2020-05-10 02:05:38 +0200
committerSamuel Mannehed <samuel@cendio.se>2020-05-31 00:53:15 +0200
commit11a22dbf0c3a44963ae95ab3aba876dd8db54e6b (patch)
treee6937227d7fae19994397d1a78e127c8723268db /core/rfb.js
parent006743857bd3fc25ff475a6c942f1fcbe2d20e88 (diff)
downloadnovnc-11a22dbf0c3a44963ae95ab3aba876dd8db54e6b.tar.gz
Stop send mouse clicks while dragging in view only
Diffstat (limited to 'core/rfb.js')
-rw-r--r--core/rfb.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/rfb.js b/core/rfb.js
index e93be0f..351e4b3 100644
--- a/core/rfb.js
+++ b/core/rfb.js
@@ -836,6 +836,8 @@ export default class RFB extends EventTargetMixin {
return;
}
+ if (this._viewOnly) { return; }
+
// Otherwise we treat this as a mouse click event.
// Send the button down event here, as the button up
// event is sent at the end of this function.