Skip to content

Commit ee4c14b

Browse files
authored
Merge pull request #4 from ThinkDeepTech/hm/impl
updated intersection thresholds to include 0 for element not visible
2 parents 209779b + 58a7f85 commit ee4c14b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deep-element-behavior.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// NOTE: A null root defaults to the device view port.
1717
this.__visibilityObserver = new IntersectionObserver(this.__updateVisibility.bind(this), {
1818
root: this.parentNode || null,
19-
threshold: 0.9
19+
threshold: [0, 1.0]
2020
});
2121
this.__visibilityObserver.observe(this);
2222
},

0 commit comments

Comments
 (0)