From 4f720446b26d2e784c8ccee00999e3cbf5c086b3 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 27 Oct 2018 12:26:53 -0400 Subject: [PATCH] change scroll[X|Y] to page[X|Y]Offset - closes #480 --- templates/src/client/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }; }