Repository navigation
[drawer] Add x/y options to data-base-ui-swipe-ignore - #5808
Conversation
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]>
commit: |
Bundle size
PerformanceTotal duration: 453.56 ms +6.35 ms(+1.4%) | Renders: 76 (+0) | Paint: 837.23 ms +6.65 ms(+0.8%)
13 tests within noise — details Metric alarms
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@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. |
|
Thank you @atomiks !!! |
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.