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

fix(issue-510): support Additional state to be passed as the IntersectionObserverEntry #932

Merged
merged 6 commits into from
Aug 23, 2023

Conversation

xinlli
Copy link

@xinlli xinlli commented Aug 23, 2023

  • support Additional state to be passed as the IntersectionObserverEntry
  • yarn test

@@ -39,22 +39,26 @@ class MockIntersectionObserver {
/**
* Force a single element to enter the viewport
* @param {String} el - a DOM selector string
* @param {object} [state] Additional state to be passed as the IntersectionObserverEntry
Copy link
Owner

Choose a reason for hiding this comment

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

Lets type this as IntersectionObserverEntry instead of object?

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@elwayman02
Copy link
Owner

Can you update the testing docs as well to note people can construct and pass their own IntersectionObserverEntry?

https://github.com/elwayman02/ember-scroll-modifiers/blob/master/docs/modifiers/did-intersect.md#testing

@elwayman02 elwayman02 merged commit fb6f04c into elwayman02:master Aug 23, 2023
13 of 15 checks passed
@elwayman02 elwayman02 added the enhancement New feature or request label Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants