Skip to content
Snippets Groups Projects
Commit 320e941d authored by Pan's avatar Pan
Browse files

fix[Sticky]: fixed bug in resize #725

parent d0f6d3f1
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment