MCPcopy
hub / github.com/hakimel/reveal.js / onDocumentCursorActive

Method onDocumentCursorActive

js/controllers/pointer.js:92–100  ·  view source on GitHub ↗

* Called whenever there is mouse input at the document level * to determine if the cursor is active or not. * * @param {object} event

( event )

Source from the content-addressed store, hash-verified

90 * @param {object} event
91 */
92 onDocumentCursorActive( event ) {
93
94 this.showCursor();
95
96 clearTimeout( this.cursorInactiveTimeout );
97
98 this.cursorInactiveTimeout = setTimeout( this.hideCursor.bind( this ), this.Reveal.getConfig().hideCursorTime );
99
100 }
101
102 /**
103 * Handles mouse wheel scrolling, throttled to avoid skipping

Callers

nothing calls this directly

Calls 3

showCursorMethod · 0.95
getConfigMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected