From 0c5ec93e7d2e9e5ef5fa66b87bf4601dd6876e7a Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 26 Sep 2017 16:37:08 -0700 Subject: [PATCH] Scroll to the top of the page on transition. Like a normal website. --- ui/app/routes/application.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/app/routes/application.js b/ui/app/routes/application.js index 5f46de610..7197f1819 100644 --- a/ui/app/routes/application.js +++ b/ui/app/routes/application.js @@ -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); + }, + }, +});