0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 03:05:15 +00:00

fix: little scroll bug

This commit is contained in:
Nikita Krupin 2022-12-27 12:06:19 -05:00
parent c2cfa6087c
commit 75b5aaf88d

View file

@ -486,6 +486,7 @@ export default {
// Toggle this.showComments to true or false. If it is true, then add the dismiss function to backStack.
toggleComment() {
document.getElementById("content-container").scrollTo(0, 0);
this.showComments = !this.showComments;
if (this.showComments) {
const dismissComment = new backType(
@ -508,8 +509,8 @@ export default {
left: 0;
right: 0;
bottom: 0;
z-index: 2;
opacity: 0;
z-index: 2;
height: 100%;
max-height: 100%;
position: absolute;