From ef1b04c56cefd1571758218259612ee591a446ea Mon Sep 17 00:00:00 2001 From: BcRikko Date: Tue, 26 Feb 2019 20:53:50 +0900 Subject: [PATCH] docs: fix scroll to top --- docs/index.html | 2 +- docs/script.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/index.html b/docs/index.html index 71b1400..4a05d3a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -199,7 +199,7 @@ - + diff --git a/docs/script.js b/docs/script.js index adf66cd..729e207 100644 --- a/docs/script.js +++ b/docs/script.js @@ -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); - }, }, });