From 7b6719b96d23fd07552fec7bd7716c3d634d9aff Mon Sep 17 00:00:00 2001 From: shpuld Date: Sat, 18 Feb 2017 22:55:16 +0200 Subject: @click on top nav makes window scroll to top --- src/App.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/App.js') diff --git a/src/App.js b/src/App.js index 4b0e81d0..2a00b369 100644 --- a/src/App.js +++ b/src/App.js @@ -24,6 +24,9 @@ export default { methods: { activatePanel (panelName) { this.mobileActivePanel = panelName + }, + scrollToTop () { + window.scrollTo(0, 0) } } } -- cgit v1.2.3-70-g09d2