A sensible default implementation of scrolling for Ember apps, aiming to mimic static site behaviour.
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-scroll
Once installed this addon automatically starts working. There is no need to configure anything.
On route navigation this addon will scroll to the top of the page in an accessible way, inspired by ember-a11y-refocus. Scrolling to the top will not occur when the browser's back and forward buttons are used.
This addon also avoids the common pitfall of scrolling to the top of the page on initial render.
See the Contributing guide for details.
ember-scroll is developed by and © Mainmatter GmbH and contributors. It is released under the MIT License.