Skip to content

fix(ui): fix drawer scroll on iOS Safari#16184

Open
jaydeep-pipaliya wants to merge 1 commit intopayloadcms:mainfrom
jaydeep-pipaliya:fix/drawer-ios-safari-scroll
Open

fix(ui): fix drawer scroll on iOS Safari#16184
jaydeep-pipaliya wants to merge 1 commit intopayloadcms:mainfrom
jaydeep-pipaliya:fix/drawer-ios-safari-scroll

Conversation

@jaydeep-pipaliya
Copy link
Copy Markdown

What?

Fixes #14866

On real iPhone Safari, the admin drawer content cannot be scrolled with one finger — it appears frozen.

Why?

iOS Safari requires explicit opt-in for touch scrolling on scrollable containers. Without -webkit-overflow-scrolling: touch and touch-action: pan-y, single-finger swipe gestures are not recognized as scroll events inside the drawer.

How?

Added the two required CSS properties to .drawer__content-children, which is the scrollable container inside the drawer:

-webkit-overflow-scrolling: touch;
touch-action: pan-y;

Also changed overflow: auto to overflow-y: auto to be more explicit about the scroll axis.

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.

Admin drawer not scrollable on iOS Safari (real device) – works in desktop emulation

1 participant