Skip to content

feat: add a callback method on start #321

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

Merged
merged 3 commits into from
Aug 25, 2023
Merged

Conversation

cherrol
Copy link
Contributor

@cherrol cherrol commented Aug 24, 2023

I'm submitting a...

[ ] Bug Fix
[x] Feature

Checklist

  • Test your changes
  • Followed the build steps

Description

add a fallback method on start

Does this PR introduce a breaking change?

[ ] Yes
[x] No

@inorganik
Copy link
Owner

Hi, thank you for the PR. Looking at this though I am not inclined to merge, because I can't see a reason for the change.

The onComplete callback exists because it will automatically execute when the animation ends, but if you want to call something when the animation starts, you can simply call it in the next line after start().

@cherrol
Copy link
Contributor Author

cherrol commented Aug 25, 2023

Hi, when enableScrollSpy is turned on, the start() method is not called manually, so this hook is added.

@inorganik inorganik merged commit e580fc2 into inorganik:master Aug 25, 2023
@inorganik
Copy link
Owner

Thanks, that makes sense. Published in v2.8.0!

@inorganik inorganik changed the title feat: add a fallback method on start feat: add a callback method on start Aug 25, 2023
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