Repository navigation
[drawer] Fix touch scroll in portaled popups - #4382
Merged
atomiks merged 2 commits intoMar 20, 2026
Merged
Conversation
Contributor
Author
Codex ReviewOverviewThis patch updates Drawer's touch handling so portaled popups inside a drawer are not mistaken for swipe-dismiss content. It also adds focused regressions for the low-level portal event path and the reported Combobox-in-Drawer interaction. Findings (None)No blocking issues found in this patch. Confidence: 4/5High confidence based on a full pass over the touched drawer logic, the new regression coverage, and focused verification in both JSDOM and Chromium. Residual risk is mainly that browser-mode touch tests still exercise synthetic pointer events rather than a fully native mobile gesture pipeline. Notes
|
commit: |
Bundle size report
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. |
atomiks
force-pushed
the
codex/fix-drawer-portaled-touch-scroll
branch
2 times, most recently
from
March 20, 2026 10:43
e4653bb to
d20ee53
Compare
atomiks
force-pushed
the
codex/fix-drawer-portaled-touch-scroll
branch
from
March 20, 2026 10:44
d20ee53 to
c2ce81c
Compare
atomiks
marked this pull request as ready for review
March 20, 2026 11:04
atomiks
requested review from
LukasTy,
colmtuite,
flaviendelangle and
michaldudak
as code owners
March 20, 2026 11:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4380
Summary
This prevents Drawer touch-swipe bookkeeping from starting when a touch event originates from a React-portaled surface outside the drawer viewport DOM. That keeps mobile touch scrolling working for popup content such as Combobox and Select inside a Drawer.
Changes
DrawerViewporttouch tracking when the touch target is outside the viewport or popup DOM subtree.touchmove.