You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lethargy.check function expects you to pass an instance of Event to it.
Otherwise it will throw an error.
Looks like @use-gesture library you're using returns an instance of SyntheticEvent, which is a custom React wrapper for native Events. That's why you're seeing this error message.
I'll add a check for this use-case in the next release, but for now you can quickly fix this on your side by passing event.nativeEvent like this:
Describe the bug
When passing the event from useGesture’s wheel gesture, I get this error:
Uncaught Error: No event provided
To Reproduce
Steps to reproduce the behavior:
Implement basic wheel gesture like in this example:
https://codesandbox.io/p/sandbox/lethargy-2coe8?file=%2Fsrc%2Findex.js%3A22%2C41
Expected behavior
lethargy.check(event) is expected to return -1 or 1 but instead the above mentioned error is thrown.
Screenshots
The text was updated successfully, but these errors were encountered: