New issue
Advanced search Search tips

Issue 722114 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 722116
Owner: ----
Closed: May 2017
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Intersection Observer API - wrong value of IntersectionObserverEntry.isIntersecting

Reported by stefanju...@gmail.com, May 14 2017

Issue description

UserAgent: 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:
 
index.html
588 bytes View Download
Labels: Needs-Triage-M58
Mergedinto: 722116
Status: Duplicate (was: Unconfirmed)
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