Scroll back to top between onboarding steps. Fix #27.

This commit is contained in:
Lucas Verney 2018-08-02 10:21:30 +02:00
parent 194c4cf3d7
commit 530184a817

View File

@ -77,6 +77,11 @@ export default {
this.$router.push({ name: 'Map' }); this.$router.push({ name: 'Map' });
}, },
}, },
watch: {
step() {
window.scrollTo(0, 0);
},
},
}; };
</script> </script>