Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

bugfix: adds scroll listeners for aborting #7

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

Conversation

kindoflew
Copy link

@kindoflew kindoflew commented Mar 27, 2021

This adds scroll listeners for aborting the animated scroll. I noticed when using this package that scrolling or clicking during animation didn't do anything and onAborting always ran after onDone, even if no scroll events fired.

In keeping with your inspiration for this, I used the same set-up as vue-scrollto (here and here.)

Here is a REPL with these changes that shows it working now: https://svelte.dev/repl/8d1798a853ba42988fee278a9bc29b36?version=3.35.0

Let me know if anything is off and I'll change it. Thanks!

Also, thanks for creating this! It's great!

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

Successfully merging this pull request may close these issues.

None yet

1 participant