Skip to content

Commit 320e941

Browse files
committed
fix[Sticky]: fixed bug in resize PanJiaChen#725
1 parent d0f6d3f commit 320e941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Sticky/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default {
6767
handleScroll() {
6868
this.width = this.$el.getBoundingClientRect().width
6969
const offsetTop = this.$el.getBoundingClientRect().top
70-
if (offsetTop <= this.stickyTop) {
70+
if (offsetTop < this.stickyTop) {
7171
this.sticky()
7272
return
7373
}

0 commit comments

Comments
 (0)