forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify scroll tracking and greatly increase frequency in which we
emit viewport change events on scroll. - The scroll event now always fires in vsync and always measures scrollTop. - The viewport change event now happens at the latest 3 frames after scrolling ended. - Increased speed at which we send change event. Needed due to resolution at slow speed, but I also feel the value is better. Changes ad intersection to fire "on scroll". Fixes ampproject#873 Fixes a bug where only the first viewability provider in an ad would get an initial viewability change record. Fixes ampproject#1126
- Loading branch information
Showing
4 changed files
with
65 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters