| 4 | export default class Pointer { |
| 5 | |
| 6 | constructor( Reveal ) { |
| 7 | |
| 8 | this.Reveal = Reveal; |
| 9 | |
| 10 | // Throttles mouse wheel navigation |
| 11 | this.lastMouseWheelStep = 0; |
| 12 | |
| 13 | // Is the mouse pointer currently hidden from view |
| 14 | this.cursorHidden = false; |
| 15 | |
| 16 | // Timeout used to determine when the cursor is inactive |
| 17 | this.cursorInactiveTimeout = 0; |
| 18 | |
| 19 | this.onDocumentCursorActive = this.onDocumentCursorActive.bind( this ); |
| 20 | this.onDocumentMouseScroll = this.onDocumentMouseScroll.bind( this ); |
| 21 | |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Called when the reveal.js config is updated. |