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

add custom events listeners #181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jonathanargentiero
Copy link

run functions registered under custom names which doesn't match with begin or end.

example:

Events.scrollEvent.register('fn1', this.functionOne.bind(this));
Events.scrollEvent.register('fn2', this.functionTwo.bind(this));

this change address to the possibility to handle different instance of react-scroll in the same view or having multiple listeners which can be unsubscribed at different moments.

run functions registered under custom names which doesn't match with `begin` or `end`.
@webdevtrev
Copy link

Hello @jonathanargentiero how do you assign these custom events to begin or end? or is that possible? I'm struggling to know when these will trigger.

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

Successfully merging this pull request may close these issues.

2 participants