commit: 6dbdd322aa02c5e4d834decbd394864d36e4e6e6
parent: b5d7a179c4a07abc79e7f0c26fb7f6ca19c4d7d3
Author: lambadalambda <gitgud@rogerbraun.net>
Date: Sat, 18 Feb 2017 16:00:06 -0500
Merge branch 'feature/top_bar_scrolls_to_top' into 'develop'
Feature/top bar scrolls to top
See merge request !19
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git 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)
}
}
}
diff --git a/src/App.vue b/src/App.vue
@@ -1,6 +1,6 @@
<template>
<div id="app" v-bind:style="style" class="base02-background">
- <nav class='container base01-background base04'>
+ <nav class='container base01-background base04' @click="scrollToTop()">
<div class='inner-nav' :style="logoStyle">
<div class='item'>
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>