Skip to content

Commit 6fdba2a

Browse files
committed
Reset the window position on navigation
Closes #85
1 parent 0254c52 commit 6fdba2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/controllers/application.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export default Ember.Controller.extend({
2929
}
3030
},
3131

32+
currentPathChanged: function () {
33+
window.scrollTo(0, 0);
34+
}.observes('currentPath'),
35+
3236
actions: {
3337
search: function(query) {
3438
this.transitionToRoute('search', {queryParams: {q: query}});

0 commit comments

Comments
 (0)