Skip to content

Feature: #3 - Added User Preference to Disable/Enable Click to Play/Pause#21

Merged
11k merged 3 commits into
destinygg:mainfrom
TuringQuantrix:feat/3/add-setting-disable-click-play-pause
Apr 23, 2026
Merged

Feature: #3 - Added User Preference to Disable/Enable Click to Play/Pause#21
11k merged 3 commits into
destinygg:mainfrom
TuringQuantrix:feat/3/add-setting-disable-click-play-pause

Conversation

@TuringQuantrix

Copy link
Copy Markdown
Contributor
  • Added user preference for clicking/tapping to play/pause the video
  • Added a toggle for that user preference to the settings menu

I don't love the label "Pause on Click". I'm open to suggestion for better copy or alternatively making the menu wider so the text doesn't wrap.

I tested and confirmed this option does not impact clicking the play/pause button or the tapping the space bar.

@TuringQuantrix TuringQuantrix changed the title 3: Added User Preference to Disable/Enable Click to Play/Pause #3: Added User Preference to Disable/Enable Click to Play/Pause Feb 19, 2026
@TuringQuantrix TuringQuantrix changed the title #3: Added User Preference to Disable/Enable Click to Play/Pause Feature: #3 - Added User Preference to Disable/Enable Click to Play/Pause Feb 19, 2026
isPlaying,
handlePlayPause,
showControls,
clickToPlayPause,

@TuringQuantrix TuringQuantrix Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The prop drilling here is not ideal but needed for the container and switch to share the same piece of state.

We could avoid this with a state library but that's likely overkill. Or using providers but that would break the current pattern we have for preferences.

@11k

11k commented Mar 23, 2026

Copy link
Copy Markdown
Collaborator

Can you make the menu wider so the "Pause on Click" text doesn't wrap? I don't like the way it looks when it's two lines.

@TuringQuantrix

Copy link
Copy Markdown
Contributor Author

Can you make the menu wider so the "Pause on Click" text doesn't wrap? I don't like the way it looks when it's two lines.

Done. Made the dropdown width dynamic with a min width of the original width (180px)

@11k 11k merged commit 61bf13e into destinygg:main Apr 23, 2026
1 check passed
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.

2 participants