Issue metadata
Sign in to add a comment
|
Intersection Observer API - wrong value of IntersectionObserverEntry.isIntersecting
Reported by
stefanju...@gmail.com,
May 14 2017
|
||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Steps to reproduce the problem: 1. Open index.html in Chrome. It shows an implementation of the Intersection Observer API (https://wicg.github.io/IntersectionObserver/). The observer function will be called with a IntersectionObserverEntry which includes `isIntersecting` property. Whenever the target ( ) get into the viewport the property isIntersecting is logged to the console. 2. Scroll up and down to see the value of isIntersecting in the console. What is the expected behavior? The value of the property should be true if it enters the viewport and false if it's leaving the viewport. What went wrong? Even when the callback is called properly on intersection the value of the property `isIntersecting` is only initially false but stays true afterwards. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 58.0.3029.110 Channel: stable OS Version: OS X 10.12.0 Flash Version:
,
May 15 2017
seems the issue is similar to issue id 722116, hence merging into it. Please feel free to undupe if its not similar. Thanks. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by ranjitkan@chromium.org
, May 15 2017