]> git.proxmox.com Git - mirror_novnc.git/commit - core/rfb.js
Always send mouseUp events properly
authorSamuel Mannehed <samuel@cendio.se>
Wed, 5 Apr 2017 12:00:59 +0000 (14:00 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Wed, 5 Apr 2017 12:00:59 +0000 (14:00 +0200)
commit270bdbd7fbf3ce24893fa81f22cdfb3d68e91c49
treeab450c456bcd3e43e35f182f28e71c48e3bdf9cb
parentf4ae0a1402ec2e77a653f25d0b73f426680b8fcf
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.
core/rfb.js