Skip to content

Add setting to disable touch swipe miniplayer#4131

Open
eldenizfamilyanskicode wants to merge 1 commit into
code-charity:masterfrom
eldenizfamilyanskicode:codex/disable-touch-swipe-miniplayer
Open

Add setting to disable touch swipe miniplayer#4131
eldenizfamilyanskicode wants to merge 1 commit into
code-charity:masterfrom
eldenizfamilyanskicode:codex/disable-touch-swipe-miniplayer

Conversation

@eldenizfamilyanskicode

Copy link
Copy Markdown

Closes #4127.

Summary

  • Add a Player setting to disable touch swipe-to-mini-player behavior.
  • Install an idempotent touch/pointer guard when the setting is enabled.
  • Stop downward drags that start on the player video surface before YouTube can route the watch page to home/miniplayer.
  • Ignore player controls so normal controls remain usable.
  • Add English locale text and unit coverage for the wiring plus simulated touch-drag behavior.

Validation

  • npm ci
  • npm test -- --runInBand
  • npm run lint

Note: I do not have a Windows touchscreen tablet available, so the regression coverage uses synthetic touch events for the affected gesture path.

@nkinnan

nkinnan commented Jul 5, 2026

Copy link
Copy Markdown

I will test this PR tomorrow. Thanks for implementing this!

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.

Prevent youtube from going to the homepage while putting your current video to picture in picture

2 participants