-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change.intersectionRect is never updated #29759
Comments
Additionally, when using |
It doesn't work with the current Experimental version, v. 2008072132002. |
I didn't want to ping anyone, but I couldn't get any answer since last week, and this issue prevents all our ads from being started. Since it's been promoted to the Experimental channel, I'm a bit worried. I'm pretty sure it's due to the following commit: c720e08. Please @choumx, can you have a look? |
Thanks for the detailed report. I can repro the issue, but I don't think it's c720e08 because @ampproject/wg-ads-reviewers |
Hello, thanks for the reply! Yes, the initial Our automated tests stopped working since a commit merged on 2020-08-06 or 2020-08-07. I thought it was this one since it's about "intersect", but I guess I was wrong! |
Yea it's somewhere in here: 2007302...2008070 |
Tried |
Thanks Will, I can take it from there |
Hey, thanks for the fix! I tested on the latest nightly channel (v. 2008180007000) and it works fine! 👍 |
Hello again! It works, but it takes much more time to "start working" (v. 2008180007000). I noticed the FTR, on the current stable version (v. 2007302351001), there is no delay. I tested on Chrome Mac OS so far, and our automated tests on Safari 12.0 are flaky (I suspect this delay to be the cause). EDIT I actually created another issue since this problem occurs with the Beta channel as well: #29893. |
What's the issue?
The
change.intersectionRect
object is never updated.How do we reproduce the issue?
Resize your viewport to be e.g. 850px wide (not too wide since there isn't much content on the page).
Go to https://amp.teads.tv/.
Wait a little bit (1-2 seconds), then scroll down the page.
See demo
Below the 2nd "lorem ipsum" paragraph, you should see a light-grey rectangle. This is where the ad is supposed to play. On stable (v. 2007242032002) and beta (v. 2007302351001), the ad is indeed displayed.
If you take the focus of the
amp-ad > iframe > body
element, then observe the changes on_teads_amp.change.intersectionRect
, you'll notice that the values are never updated. We are using this object to detect when the ad is visible, then start/play it. Since the object contains only zeros, we don't consider the ad visible, and we don't start it.See changes observed on v. 2007242032002 (stable)
See changes observed on v. 2008072132000 (nightly)
What browsers are affected?
So far, I could test only on these browsers:
I couldn't set the nightly version on Safari v13.1.
Which AMP version is affected?
2008072132000
The text was updated successfully, but these errors were encountered: