mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
Scroll to the top of the page on transition. Like a normal website.
This commit is contained in:
@@ -2,4 +2,10 @@ import Ember from 'ember';
|
||||
|
||||
const { Route } = Ember;
|
||||
|
||||
export default Route.extend({});
|
||||
export default Route.extend({
|
||||
actions: {
|
||||
didTransition() {
|
||||
window.scrollTo(0, 0);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user