Skip to content

Commit

Permalink
Fix auto scroll feature
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpierce committed Feb 8, 2024
1 parent a1472d1 commit b90b43c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div id="info">
<a href="mailto:hello@introtorhythm.com">hello@introtorhythm.com</a><br>
<a href="tel:9718018007">971-801-8007</a><br>
<a href="/#chat">Chat</a>
<a href="#chat" @click.prevent="goDown()">Chat</a>
</div>

<Marquee v-if="loaded" :text="marqueeText" />
Expand All @@ -35,6 +35,12 @@ export default {
}
},
methods: {
goDown() {
window.scrollTo(0, document.body.scrollHeight);
}
},
computed: {
marqueeText() {
return this.$store.state.content.marqueeText
Expand Down

0 comments on commit b90b43c

Please sign in to comment.