-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
When using animateMini with scroll, trying to cancel the function to clean up scroll listeners will raise an error, causing Motion Mini to crash.
The issue can be reproduced here: https://codesandbox.io/p/devbox/vanilla-js-forked-gg4wq9?workspaceId=ws_2ajUMWBiBa7sDb8MJCFnBo
For now, the only workaround I have found is to check if the element is visible in the DOM, but this means that removing scroll listeners in a disconnectedCallback is not possible.
Thanks.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working