mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-22 02:31:31 +02:00
Hide the emulated cursor when target is null
Makes it easier to understand what happens when a real element isn't passed as a target to updateVisibility(). Also makes the code more robust to future changes. Co-authored-by: Alex Tanskanen <aleta@cendio.se> Co-authored-by: Niko Lehto <nikle@cendio.se>
This commit is contained in:
parent
fb14c2dec9
commit
996895268e
@ -209,6 +209,9 @@ export default class Cursor {
|
|||||||
// (i.e. are we over the target, or a child of the target without a
|
// (i.e. are we over the target, or a child of the target without a
|
||||||
// different cursor set)
|
// different cursor set)
|
||||||
_shouldShowCursor(target) {
|
_shouldShowCursor(target) {
|
||||||
|
if (!target) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// Easy case
|
// Easy case
|
||||||
if (target === this._target) {
|
if (target === this._target) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user