Skip to content

Commit

Permalink
Merge pull request #4 from ThinkDeepTech/hm/impl
Browse files Browse the repository at this point in the history
updated intersection thresholds to include 0 for element not visible
  • Loading branch information
haydenmcp authored Feb 20, 2018
2 parents 209779b + 58a7f85 commit ee4c14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deep-element-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// NOTE: A null root defaults to the device view port.
this.__visibilityObserver = new IntersectionObserver(this.__updateVisibility.bind(this), {
root: this.parentNode || null,
threshold: 0.9
threshold: [0, 1.0]
});
this.__visibilityObserver.observe(this);
},
Expand Down

0 comments on commit ee4c14b

Please sign in to comment.