Skip to content

Commit

Permalink
[fix] increase scroll debounce timeout (#2749)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Nov 5, 2021
1 parent 2bf3328 commit e79cf04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-glasses-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

[fix] increase scroll debounce timeout
3 changes: 2 additions & 1 deletion packages/kit/src/runtime/client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export class Router {
'sveltekit:scroll': scroll_state()
};
history.replaceState(new_state, document.title, window.location.href);
}, 50);
// iOS scroll event intervals happen between 30-150ms, sometimes around 200ms
}, 200);
});

/** @param {MouseEvent|TouchEvent} event */
Expand Down

0 comments on commit e79cf04

Please sign in to comment.