Commit 1ad08254 authored by christianrhansen's avatar christianrhansen

added attribute to emit

parent ee27c194
......@@ -16,10 +16,10 @@
let target = entries[0]
if (!target.isIntersecting) {
this.$emit('onIntersectionChange', {element: this.element, offsetLeft: target.boundingClientRect.left})
this.$emit('onIntersectionChange', {element: this.element, intersecting: target.isIntersecting, offsetLeft: target.boundingClientRect.left})
}
else {
this.$emit('onIntersectionChange', {element: this.element, offsetLeft: undefined})
this.$emit('onIntersectionChange', {element: this.element, intersecting: target.isIntersecting, offsetLeft: undefined})
}
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment