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? N/A Chrome version: 58.0.3029.110 Channel: stable OS Version: OS X 10.12.0 Flash Version:
,
May 15 2017
,
May 15 2017
Issue 722114 has been merged into this issue.
,
May 17 2017
Able to reproduce this issue on Mac 10.12.4, Win-10 and Ubuntu 14.04 using chrome reported version #58.0.3029.110 and latest chrome version #60.0.3101.0. This is a non-regression issue as it is observed from M52 old builds. In M52 builds, while scrolling up and down, the value doesn't remain false or true. Rather it shows as "undefined" and the count increases. plz refer the attached intersection@M52 screen shot. In M50 builds, intersectionobserver is not defined. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!!
,
May 19 2017
It's not related to Chrome DevTools, so forwarded..
,
Aug 31 2017
,
Sep 1 2017
,
May 8 2018
|
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by l446240525@gmail.com
, May 15 201733.6 KB
33.6 KB View Download