Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide mouse cursor (and controls) on video element after user inactivity #756

Open
1 of 3 tasks
luwes opened this issue Oct 31, 2023 · 5 comments · May be fixed by #1101
Open
1 of 3 tasks

Hide mouse cursor (and controls) on video element after user inactivity #756

luwes opened this issue Oct 31, 2023 · 5 comments · May be fixed by #1101
Assignees

Comments

@luwes
Copy link
Collaborator

luwes commented Oct 31, 2023

feature requested by multiple users

  • hide mouse cursor on video element when controls fade out
  • add option that even when mouse cursor is on the controls (button, timerange etc) the controls and mouse cursor will still fade out after a delay.
  • be smart on play button click and hiding controls / cursor like explained by @cjpillsbury below
@luwes luwes added the enhancement New feature or request label Oct 31, 2023
@kentcdodds
Copy link

Can I request that the cursor be hidden after inactivity even if it's over video controls? It bugs the heck out of me when someone's sharing their screen and they move their mouse over the controls and the controls stay up through the whole video. Pet peeve I guess.

@luwes
Copy link
Collaborator Author

luwes commented Nov 1, 2023

@kentcdodds thanks for the feedback! I'm not sure we can make that the default.
generally the controls stay active when the mouse is over the controls. I'll bring it up as an option w/ the team though.

have you seen this behavior with another player?

@kentcdodds
Copy link

I've definitely seen players do both, but can't think of a specific example

@cjpillsbury
Copy link
Collaborator

cjpillsbury commented Nov 2, 2023

Appreciate the feedback, @kentcdodds, and I've definitely seen that as well. We'd want to be cautious about adding it as default, minimally for accessibility considerations (not all folks are as quick on the draw with interactivity), but I like the idea of making it optional. Another thing we should probably consider in relationship to that is having our delayed hide behavior kick off if a user takes an action: e.g. if the user clicks the play button but doesn't then move the cursor, we can assume (optionally, by default, or as the de facto behavior) that they'd like the controls to eventually automatically hide. We should probably first do an ad hoc survey of other players in the wild to see how they behave around these things (iirc youtube will do this, but maybe only for play/pause? would have to recheck).

@kentcdodds
Copy link

That sounds awesome to me 👍

@luwes luwes self-assigned this Nov 3, 2023
@luwes luwes removed the enhancement New feature or request label Dec 4, 2024
@luwes luwes removed their assignment Mar 5, 2025
@luwes luwes changed the title Hide mouse cursor on video element after user inactivity Hide mouse cursor (and controls) on video element after user inactivity Mar 14, 2025
@ronalduQualabs ronalduQualabs self-assigned this Mar 17, 2025
@ronalduQualabs ronalduQualabs linked a pull request Mar 24, 2025 that will close this issue
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 a pull request may close this issue.

4 participants