coding-blocks / coding-blocks/codingblocks.online.projectx

We need to scroll to the top of the page, when showing pages

オープン
#418 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
BOSS BOUNTY: 100
主要言語
JavaScript
スター
31
フォーク
102
PR マージ指標
30日以内にマージされた PR はありません

説明

By Default, the scroll position is preserved while transitioning routes. However, at times this isn't the desired behaviour.
We need to scroll to top for the following pages:

- [ ] Home
- [ ] All Courses
- [ ] My Courses
- [ ] Course Timeline (Course Overview)
- [ ] Course/:id

### How ?
Use [ember-router-scroll](https://github.com/dollarshaveclub/ember-router-scroll) plugin, and use the mixin at the mentioned routes.

Don't `window.scrollTop(0, 0)` in beforeModel or similar hook. This will not preserve scroll position when using browser's back button. #DontBreakTheWeb

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。