-
Notifications
You must be signed in to change notification settings - Fork 12
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
Type checking disable for whileDrag #24
Comments
I'm happy when it works for you, but usually 'whileDrag' is not supposed to accept callback. I am somewhat surprised, that it kind of works. I tested myself, it seems the 'whileDrag' is called once the drag starts and once when it is done, both times without any argument. 'onDrag' accepts a callback and is called over and over while dragged. If you just want to silence Typescript you could cast your handler to 'any' |
I'm getting a type error because I'm trying to use a function inside whileDrag
The code works fine and does exactly what I need though. Execute a function while the object is being dragged.
Is there any way to disable this type checking?
I'm using Svelte with Vite.
The text was updated successfully, but these errors were encountered: