From 58a7f85f274e47755a0ad40eed24a1fbde809e6c Mon Sep 17 00:00:00 2001 From: haydenmcp Date: Mon, 19 Feb 2018 18:41:43 -0600 Subject: [PATCH] updated intersection thresholds to include 0 for element not visible --- deep-element-behavior.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deep-element-behavior.html b/deep-element-behavior.html index 1a41d5f..cb61f7e 100644 --- a/deep-element-behavior.html +++ b/deep-element-behavior.html @@ -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); },