diff --git a/README.md b/README.md index 181e63c..9376fc3 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,7 @@ An unofficial add-on for the Next.js App Router. It draws slide transitions betw - Edge-swipe Back (`swipeBack`) with a preview of the previous screen. - Scroll offset restored per history entry (`preserveScroll`). - Document scrolling by default (`window.scrollTo`, `window.scrollY` keep working); an independent scroll container also works (`scrollTarget`). -- `appShell`: the provider fills the viewport, the document never scrolls, and only the content area (or each page's `scrollTarget`) scrolls. Header and footer slots are optional. -- The browser's own scrollbar is hidden on ``, `
` and the scroll areas; the drawn scrollbar replaces it. +- Only the scrollbar changes, never the scroller: the document still scrolls, so `window.scrollTo`, `window.scrollY`, `scrollTop` and `scroll` events behave as without the package. The browser's own scrollbar is hidden on `` and ``, and the drawn scrollbar replaces it. - A vertical scrollbar drawn with [OverlayScrollbars](https://github.com/KingSora/OverlayScrollbars): its track stays between fixed headers, footers and tab bars, follows whichever scroller is moving, and can be dragged or clicked. - `edgeBounce`: optional touch bounce at scroll boundaries on non-Apple touch devices. - `skipSlideQueryKeys`: skip the page slide when only a popup query parameter changes. diff --git a/docs/REFERENCE.md b/docs/REFERENCE.md index 9ec5242..a2d9ec2 100644 --- a/docs/REFERENCE.md +++ b/docs/REFERENCE.md @@ -303,36 +303,6 @@ The scroll offset and native scroll range stay at the boundary. The effect respects reduced motion. Keep fixed bars outside the moving surface, for example as siblings of `scrollTarget` or in the provider slots. -### Run as an app shell - -Set `appShell` to make the provider fill the viewport like a native app. The -document stops scrolling, so the browser never shows a scrollbar on `` or -``. The `header`, `persistent` and `footer` slots stay put, and only the -content area between them scrolls, with the drawn scrollbar inside that area. -Leave out `header` and `footer` and let each page render its own bars, then -point `scrollTarget` at the page's scrolling area. `appShell` implies -`scrollMode="container"`. - -```tsx -// Shared bars from the layout -