Skip to content
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

serve isIntersecting polyfill to chromium based browsers #1283

Conversation

romainmenke
Copy link
Collaborator

see : #1282

@romainmenke romainmenke requested a review from a team as a code owner March 23, 2023 13:41
@origamiserviceuser origamiserviceuser added this to Backlog in Origami ✨ Mar 23, 2023
@github-actions github-actions bot added the library Relates to an Origami library label Mar 23, 2023
@@ -61,6 +61,7 @@ function IntersectionObserverEntry(entry) {
}
}

IntersectionObserverEntry.prototype.intersectionRatio = 0;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not ideal, but this matches the surrounding code.
Without this the polyfill doesn't pass its own feature detect.

/* eslint-env mocha, browser */
/* global proclaim */

describe('IntersectionObserver', function () {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very minimal test to ensure we have at least some indication that the polyfill works.

@@ -2,7 +2,38 @@
/* global proclaim */

describe('IntersectionObserverEntry', function () {
var scrollArea;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another very minimal test, but focussed on isIntersecting

@romainmenke
Copy link
Collaborator Author

🤔 browserstack seems to have broken something again.
Going to check again in a few days.

@romainmenke
Copy link
Collaborator Author

CI all green

@romainmenke romainmenke merged commit d084341 into master Apr 21, 2023
16 checks passed
Origami ✨ automation moved this from Backlog to Done Apr 21, 2023
@romainmenke romainmenke deleted the isIntersecting-polyfill-for-chromium--adventurous-spadefoot-toad-9e5b11b33c branch April 21, 2023 08:19
@robertboulton robertboulton removed this from Done in Origami ✨ Jul 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
library Relates to an Origami library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants