From 6a98cf4f4a137fa0aa9f00d916c5e943c35ec2f5 Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 22 Mar 2022 00:49:11 -0500 Subject: [PATCH] scroll back to top after clicking on a video --- NUXT/pages/watch.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NUXT/pages/watch.vue b/NUXT/pages/watch.vue index 2f73fb4..8b5c798 100644 --- a/NUXT/pages/watch.vue +++ b/NUXT/pages/watch.vue @@ -119,6 +119,9 @@ export default { }; }, mounted() { + // scroll back to top after clicking on the video + window.scroll(0, 0); + this.likes = 100; this.$youtube.getVid(this.$route.query.v).then((result) => {