Skip to content

fix: clear idle cursor timeout when disabling the option or changing to the presenter mode#2147

Merged
antfu merged 1 commit into
slidevjs:mainfrom
TymekDev:main
Apr 10, 2025
Merged

fix: clear idle cursor timeout when disabling the option or changing to the presenter mode#2147
antfu merged 1 commit into
slidevjs:mainfrom
TymekDev:main

Conversation

@TymekDev

@TymekDev TymekDev commented Apr 9, 2025

Copy link
Copy Markdown
Contributor

Fixes #2146

With this change the timer gets cleared in two scenarios:

  1. Entering the presenter mode with shouldHide enabled. Before the change the timer started in the play mode would finish after switching to the presenter mode and the cursor got stuck in the hidden mode indefinitely.
  2. When the shouldHide is disabled via keyboard. In this scenario the pointer event listener isn't called, so the cursor would hide after disabling the option—this happened only once per toggle, though.

@netlify

netlify Bot commented Apr 9, 2025

Copy link
Copy Markdown

Deploy Preview for slidev failed.

Name Link
🔨 Latest commit 3b935a4
🔍 Latest deploy log https://app.netlify.com/sites/slidev/deploys/67f63331c8225e000872a9d8

@antfu
antfu merged commit 308f74d into slidevjs:main Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor is not visible in the presenter mode when "Hide Idle Cursor" is enabled

2 participants