diff --git a/src/components/Article.vue b/src/components/Article.vue
index 9c6785818a75e8d1b55a013631c6cea56329f22f..e67dab332369fa5c4158d9afd4f57baf46d7090b 100644
--- a/src/components/Article.vue
+++ b/src/components/Article.vue
@@ -179,7 +179,7 @@
border: rgba(0, 0, 0, 0);
"
>
-
+
0
+ that.topShow = Math.ceil(e.target.scrollTop) !== 0
})
} else if (dom && key === 'remove') {
dom.removeEventListener('scroll', function (e) {
- this.topShow = e.scrollTop > 0
+ that.topShow = e.target.scrollTop === 0
})
}
},
@@ -376,9 +378,9 @@ export default {
this.$store.commit('increment')
},
topVisible: function () {
- let dom = document.getElementById('homeTitleId')
- this.topShow = this.elementIsVisibleInViewport(dom)
- setTimeout(this.topVisible)
+ // let dom = document.getElementById('homeTitleId')
+ // this.topShow = this.elementIsVisibleInViewport(dom)
+ // setTimeout(this.topVisible)
},
elementIsVisibleInViewport: function (el, partiallyVisible = false) {
try {