diff --git a/src/components/Sticky/index.vue b/src/components/Sticky/index.vue index 8dfa09be..d3a698e8 100644 --- a/src/components/Sticky/index.vue +++ b/src/components/Sticky/index.vue @@ -67,7 +67,7 @@ export default { handleScroll() { this.width = this.$el.getBoundingClientRect().width const offsetTop = this.$el.getBoundingClientRect().top - if (offsetTop <= this.stickyTop) { + if (offsetTop < this.stickyTop) { this.sticky() return }