MCPcopy Index your code
hub / github.com/spicetify/cli / toggleCursor

Function toggleCursor

Extensions/fullAppDisplay.js:800–815  ·  view source on GitHub ↗
(show = true)

Source from the content-addressed store, hash-verified

798 }
799
800 function toggleCursor(show = true) {
801 fad = document.getElementById("full-app-display");
802
803 if (!fad) {
804 setTimeout(toggleCursor, 300, show);
805 return;
806 }
807
808 if (show) {
809 document.removeEventListener("mousemove", eventListener);
810 showCursor();
811 } else {
812 cursorTimeout = setTimeout(hideCursor, 2000);
813 document.addEventListener("mousemove", eventListener);
814 }
815 }
816
817 async function activate() {
818 if (!Spicetify.Player.data) return;

Callers 2

toggleFullscreenFunction · 0.85
deactivateFunction · 0.85

Calls 1

showCursorFunction · 0.85

Tested by

no test coverage detected