MCPcopy Create free account
hub / github.com/apache/cloudstack / _updateVisibility

Method _updateVisibility

systemvm/agent/noVNC/core/util/cursor.js:227–238  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

225 }
226
227 _updateVisibility(target) {
228 // When the cursor target has capture we want to show the cursor.
229 // So, if a capture is active - look at the captured element instead.
230 if (this._captureIsActive()) {
231 target = document.captureElement;
232 }
233 if (this._shouldShowCursor(target)) {
234 this._showCursor();
235 } else {
236 this._hideCursor();
237 }
238 }
239
240 _updatePosition() {
241 this._canvas.style.left = this._position.x + "px";

Callers 4

moveMethod · 0.95
_handleMouseLeaveMethod · 0.95
_handleMouseMoveMethod · 0.95
_handleMouseUpMethod · 0.95

Calls 4

_captureIsActiveMethod · 0.95
_shouldShowCursorMethod · 0.95
_showCursorMethod · 0.95
_hideCursorMethod · 0.95

Tested by

no test coverage detected