-
Notifications
You must be signed in to change notification settings - Fork 136
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
serve isIntersecting
polyfill to chromium based browsers
#1283
Conversation
@@ -61,6 +61,7 @@ function IntersectionObserverEntry(entry) { | |||
} | |||
} | |||
|
|||
IntersectionObserverEntry.prototype.intersectionRatio = 0; |
There was a problem hiding this comment.
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 () { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
🤔 browserstack seems to have broken something again. |
CI all green |
see : #1282