Merge branch 'master' of https://github.com/hackersanddesigners/chatty-pub
This commit is contained in:
commit
a13ac7c7a5
1 changed files with 5 additions and 1 deletions
|
|
@ -52,7 +52,11 @@ export default {
|
||||||
.replace(/\.|%[0-9a-z]{2}/gi, '')
|
.replace(/\.|%[0-9a-z]{2}/gi, '')
|
||||||
)},
|
)},
|
||||||
goTo(id) {
|
goTo(id) {
|
||||||
document.querySelector(`.${this.currentStream} ${id}`).scrollIntoView()
|
document
|
||||||
|
.querySelector(`.${this.currentStream} ${id}`)
|
||||||
|
.scrollIntoView({
|
||||||
|
behavior: 'smooth'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue