Skip to content

Commit

Permalink
Collapse chat header on mobile scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Jan 19, 2024
1 parent afbbd14 commit 4d654fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/ChatPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,16 @@ export default {
clearTimeout(this.scrollTimerForNavbar)
}
this.$refs.chatheader.collapse(true)
if (this.$refs.chatheader) {
this.$refs.chatheader.collapse(true)
}
this.scrollTimer = setTimeout(() => {
navBarHidden.value = false
this.$refs.chatheader.collapse(false)
if (this.$refs.chatheader) {
this.$refs.chatheader.collapse(false)
}
}, 5000)
}
Expand Down

0 comments on commit 4d654fd

Please sign in to comment.