diff --git a/.changeset/fix-scroll-jump-on-resize.md b/.changeset/fix-scroll-jump-on-resize.md new file mode 100644 index 00000000000..7aea938e35c --- /dev/null +++ b/.changeset/fix-scroll-jump-on-resize.md @@ -0,0 +1,5 @@ +--- +"@primer/react": patch +--- + +Fixed a bug where scroll might jump when resizing by removing content-visibility from dragging elements in PageLayout. \ No newline at end of file diff --git a/packages/react/src/PageLayout/PageLayout.module.css b/packages/react/src/PageLayout/PageLayout.module.css index 7c600dc3968..23b4bc4e155 100644 --- a/packages/react/src/PageLayout/PageLayout.module.css +++ b/packages/react/src/PageLayout/PageLayout.module.css @@ -736,5 +736,4 @@ .ContentWrapper[data-dragging='true'] { contain: layout style paint; pointer-events: none; - content-visibility: auto; }