Skip to content

Feature - adds more lifecycle events#14

Merged
romellem merged 3 commits intomasterfrom
feature/adds-more-lifecycle-events
Apr 2, 2020
Merged

Feature - adds more lifecycle events#14
romellem merged 3 commits intomasterfrom
feature/adds-more-lifecycle-events

Conversation

@romellem
Copy link
Copy Markdown
Owner

@romellem romellem commented Apr 2, 2020

Essentially the same as chrisbateman/impetus#38, except:

  • update isn't removed, only deprecated.
  • Previous x/y values are also passed to these callbacks.

romellem added 3 commits April 2, 2020 11:12
- onStart: called when starting to drag the element
- onStartDecelerating: called when the deceleration begun
- onEndDecelerating: called when the deceleration has ended

`update` was also renamed to `onUpdate`, although this was done in a
backwards compatible fashion. Instantiating an Implosion instance with
`update` is now deprecated.
This is done in order to provide a consistent end callback
@romellem romellem merged commit d620905 into master Apr 2, 2020
@romellem romellem deleted the feature/adds-more-lifecycle-events branch April 2, 2020 16:32
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.

1 participant