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

allow customization of inViewport function #24

Closed
kmohrf opened this issue Sep 7, 2016 · 4 comments
Closed

allow customization of inViewport function #24

kmohrf opened this issue Sep 7, 2016 · 4 comments

Comments

@kmohrf
Copy link

kmohrf commented Sep 7, 2016

hi and thank you working on this little library :)

i could imagine that in-view would make a perfect scroll-spy library if I’d be able to customize the inViewport function. You’re already exporting the is function as part of the libraries interface which gives me the opportunity to implement my own version and just overwrite your version.

unfortunately the registry imports the inViewport function from your module and does not take it as an argument. if you modify to use the is function from the interface that should be everything that needs to be done to support this usecase.

thanks in advance

@camwiegert
Copy link
Owner

@kmohrf I think that's a great idea and very worthwhile to implement. I'll put this on the roadmap. Thanks! PR welcome if you'd like.

@camwiegert
Copy link
Owner

@kmohrf And FYI I just pushed 0.4.0, so keep an eye out for changes.

@camwiegert
Copy link
Owner

This is on the v1 roadmap now as discussed in #27. Closing this issue, but feel free to keep discussing there!

@kmohrf
Copy link
Author

kmohrf commented Sep 12, 2016

from my own experience I’m always a bit reluctant when people push decisions to version 1.0 :).

this is your library and I can use my fork while you keep working on 1.0, but as #25 doesn’t change your existing API and a major version change is intended to allow backwards compatiblity breaks per the semantic version definition, I’d be happy if you reassess your decision to not merge the PR solely based on the rationale that you want to release v1 soon™.

@kmohrf kmohrf mentioned this issue Oct 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants