0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
astro/.changeset
Sandeep Dilip 4bc360cd5f
fix(#8625): smooth scrolling in SPA mode on iOS (#10235)
* 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>
2024-03-03 16:59:19 +01:00
..
config.json Enter pre mode for Astro 4 beta 2023-11-16 21:53:20 +08:00
lorem-ipsum-dolor Fix static build when out dir is not within the cwd (#9378) 2023-12-13 10:17:10 -05:00
purple-tips-camp.md fix(#8625): smooth scrolling in SPA mode on iOS (#10235) 2024-03-03 16:59:19 +01:00
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