diff --git a/templates/src/client/app.ts b/templates/src/client/app.ts index ed46630..512efb0 100644 --- a/templates/src/client/app.ts +++ b/templates/src/client/app.ts @@ -101,8 +101,8 @@ export function select_route(url: URL): Target { export function scroll_state() { return { - x: scrollX, - y: scrollY + x: pageXOffset, + y: pageYOffset }; }