Skip to content

fix(core): keep preview scrollable after resizing the editor panes - #8090

Open
sap1110 wants to merge 1 commit into
decaporg:mainfrom
sap1110:7800-preview-scroll-after-resize
Open

sap1110 wants to merge 1 commit into
decaporg:mainfrom
sap1110:7800-preview-scroll-after-resize

Conversation

@sap1110

@sap1110 sap1110 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Summary

After dragging the divider between the form and the preview, the preview stops scrolling with the mouse wheel until you click somewhere.

The drag end handler actually runs fine and the container goes back to pointer-events: auto, but the browser keeps ignoring wheel events on the preview iframe after its container flips from none back to auto, until something else updates it. So instead of toggling pointer-events on the preview container, this puts a transparent overlay over the preview while dragging and removes it when the drag ends. The form side is left as it was.

fixes #7800

Test plan

  • Ran the dev-test site and scripted it in Chromium with real mouse events: scroll the preview, drag the divider, scroll again. On main the second scroll moved 0px, with this change it moves the same 300px as before the drag. Didn't try Safari or Firefox.
  • pnpm run lint-quiet and pnpm run type-check pass, Editor unit tests pass.

Checklist

@sap1110
sap1110 requested a review from a team as a code owner November 19, 2026 09:40
@netlify

netlify Bot commented Nov 19, 2026

Copy link
Copy Markdown

👷 Deploy request for decap-cms pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b57a070

This branch has not been deployed

No deployments
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.

Preview pane stops accepting scroll events after resizing the form/preview divider

1 participant