1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-25 23:16:43 +02:00

docs: fix scroll to top

This commit is contained in:
BcRikko
2019-02-26 20:53:50 +09:00
parent 576719a42c
commit ef1b04c56c
2 changed files with 1 additions and 10 deletions

View File

@@ -636,14 +636,5 @@ new Vue({
this.copiedBalloon.display = 'none';
}, 1000);
},
toTop() {
const scrolling = setInterval(() => {
if (window.scrollY > 0) {
window.scrollBy(0, -window.scrollY / 10);
} else {
clearInterval(scrolling);
}
}, 10);
},
},
});