mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
4bc360cd5f
* fix(#8625): smooth scrolling in SPA mode on iOS * perf(router): run cb every 200ms only when scolling * refactor(router): suggested changes and fixes Suggested changes: - change interval time from 200 to 50ms - initialize `last*` vars together with the call to `setInterval()` - clear interval when scroll positions stop changing, independent of history state Additional changes: - remove unused `throttle()` function - move guarded block to inside `onScrollEnd()` since using history navigation will trigger our "popstate" callback and fire additional "scroll" and "scrollend" events, causing redundant expensive calls to `replaceState()` * adds changeset --------- Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com> |
||
---|---|---|
.. | ||
config.json | ||
lorem-ipsum-dolor | ||
purple-tips-camp.md | ||
README.md |
Changesets
Hello and welcome! This folder has been automatically generated by @changesets/cli
, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it in our repository
We have a quick list of common questions to get you started engaging with this project in our documentation