Skip to content

[useDismiss] Register passive touch listeners - #5572

Merged
atomiks merged 3 commits into
mui:masterfrom
wanxiankai:fix/passive-dismiss-touch-listeners
Aug 26, 2026
Merged

atomiks merged 3 commits into
mui:masterfrom
wanxiankai:fix/passive-dismiss-touch-listeners

Conversation

@wanxiankai

Copy link
Copy Markdown
Contributor

Fixes #5558

The document-level touchstart, touchmove, and touchend capture listeners used for outside-press detection are now passive. None of these handlers prevent default scrolling, so this removes Chrome's scroll-blocking listener violation without changing dismissal behavior.

A regression test verifies that all three touch listeners keep capture: true while adding passive: true.

Tests:

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@5572
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5572
    

commit: 5395819

@netlify

netlify Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 5395819
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a8e8520788ade0008ea2b74
😎 Deploy Preview https://deploy-preview-5572--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks atomiks added the scope: all components Widespread work has an impact on almost all components. label Aug 26, 2026

@atomiks atomiks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fix!

@atomiks
atomiks merged commit adec6ab into mui:master Aug 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: all components Widespread work has an impact on almost all components.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[useDismiss] Outside-press touch listeners are registered non-passive, causing scroll-blocking console violations

2 participants