Always send mouseUp events properly
If down is false we can't just toggle the current internal state, even though this is correct most of the time. There are cases where we don't get the down event and thus won't have a correct internal state. For example, when clicking in the session after using the clipboard textarea. If down is false, we always want to send a mouse event with the button in 'up'-state.
This commit is contained in:
parent
f4ae0a1402
commit
270bdbd7fb
|
@ -669,7 +669,7 @@ RFB.prototype = {
|
||||||
if (down) {
|
if (down) {
|
||||||
this._mouse_buttonMask |= bmask;
|
this._mouse_buttonMask |= bmask;
|
||||||
} else {
|
} else {
|
||||||
this._mouse_buttonMask ^= bmask;
|
this._mouse_buttonMask &= ~bmask;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._viewportDrag) {
|
if (this._viewportDrag) {
|
||||||
|
|
Loading…
Reference in New Issue