summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2017-05-11 13:30:40 +0200
committerSamuel Mannehed <samuel@cendio.se>2017-05-11 13:30:40 +0200
commit4f1c81dca94ec228923caa42aeeabf3955f540b6 (patch)
tree740f845ab6bf907133d83966291f8a1c93beb643
parentcb568ece8bb8546f7a4eb0fd85ffeab210d1f191 (diff)
downloadnovnc-4f1c81dca94ec228923caa42aeeabf3955f540b6.tar.gz
Stop tracking mouse capture state
Was a workaround for other bugs which are now fixed.
-rw-r--r--core/input/devices.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/core/input/devices.js b/core/input/devices.js
index 34a3348..c5cd68f 100644
--- a/core/input/devices.js
+++ b/core/input/devices.js
@@ -277,7 +277,6 @@ make_properties(Keyboard, [
]);
const Mouse = function (defaults) {
- this._mouseCaptured = false;
this._doubleClickTimer = null;
this._lastTouchPos = null;
@@ -303,15 +302,10 @@ Mouse.prototype = {
_captureMouse: function () {
// capturing the mouse ensures we get the mouseup event
setCapture(this._target);
-
- // some browsers give us mouseup events regardless,
- // so if we never captured the mouse, we can disregard the event
- this._mouseCaptured = true;
},
_releaseMouse: function () {
releaseCapture();
- this._mouseCaptured = false;
},
_resetDoubleClickTimer: function () {
@@ -378,8 +372,6 @@ Mouse.prototype = {
},
_handleMouseUp: function (e) {
- if (!this._mouseCaptured) { return; }
-
this._handleMouseButton(e, 0);
this._releaseMouse();
},