Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Possible to specify different thresholds? #47

Closed
pushred opened this issue Nov 4, 2016 · 2 comments
Closed

Possible to specify different thresholds? #47

pushred opened this issue Nov 4, 2016 · 2 comments

Comments

@pushred
Copy link

pushred commented Nov 4, 2016

It doesn't seem possible currently since threshold is set on the function and there's no instantiation happening. If I try to create another "instance" by requiring again and assigning to a different var of course that doesn't work either since it's the same cached function.

Wanted to confirm that this is the case, and if so whether it'd be addressed in the 1.0 API?

I gave IntersectionObserver a shot which supports this since it's an object, but ran into some inconsistent failures in Chrome.. I will say that the API of in-view is far easier to work with in practice than IntersectionObserver was, since it doesn't have much of a notion of exits.

@camwiegert
Copy link
Owner

@pushred You're correct, that's not possible at the moment. But you're in luck, the 1.0 API will be moving all settings to individual registries! I'm hoping to have a release candidate for v1 in the next few weeks.

@pushred
Copy link
Author

pushred commented Nov 15, 2016

Sweet! Sounds good, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants