Skip to content

[drawer] Add x/y options to data-base-ui-swipe-ignore - #5808

Merged
atomiks merged 6 commits into
mui:masterfrom
citrus:drawer-swipe-ignore-axis
Oct 2, 2026
Merged

atomiks merged 6 commits into
mui:masterfrom
citrus:drawer-swipe-ignore-axis

Conversation

@citrus

@citrus citrus commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Add "x"/"y" values to data-base-ui-swipe-ignore so a descendant can opt out of swipe dismissal along only one axis, instead of all directions. The bare attribute keeps its existing all-directions behavior.

Add "x"/"y" values to data-base-ui-swipe-ignore so a descendant can opt
out of swipe dismissal along only one axis, instead of all directions.
The bare attribute keeps its existing all-directions behavior.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 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@5808
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@5808
    

commit: 2baa37f

@code-infra-dashboard

code-infra-dashboard Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+193B(+0.04%) 🔺+76B(+0.05%)

Details of bundle changes

Performance

Total duration: 453.56 ms +6.35 ms(+1.4%) | Renders: 76 (+0) | Paint: 837.23 ms +6.65 ms(+0.8%)

Test Duration Renders
Checkbox mount (500 instances) 42.93 ms 🔺+11.45 ms(+36.4%) 1 (+0)
Combobox type — 500 items, all stay mounted (type "Row ") 13.61 ms ▼-4.35 ms(-24.2%) 11 (+0)

13 tests within noise — details

Metric alarms

Test Metric Change
Checkbox mount (500 instances) bench:paint 🔺 +18.23 ms

Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 2baa37f
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6abf5bd15638c20009fab5d5
😎 Deploy Preview https://deploy-preview-5808--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 component: drawer Changes related to the drawer component. type: new feature Expand the scope of the product to solve a new problem. labels Sep 29, 2026
@atomiks

atomiks commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

@citrus as far as I can tell, this is useful for things like JavaScript-driven swipe areas like a carousel, or Motion-driven gestures, along the cross axis? As native scroll areas already block swiping along the cross axis.

@citrus

citrus commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

@citrus as far as I can tell, this is useful for things like JavaScript-driven swipe areas like a carousel, or Motion-driven gestures, along the cross axis? As native scroll areas already block swiping along the cross axis.

Yes that's correct. I'm using a carousel inside the drawer, and the horizontal swiping to change slides clashes with swiping to dismiss the drawer.

@atomiks
atomiks merged commit 4c23c17 into mui:master Oct 2, 2026
24 checks passed
@citrus

citrus commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Thank you @atomiks !!!

@citrus
citrus deleted the drawer-swipe-ignore-axis branch October 2, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: drawer Changes related to the drawer component. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants