-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug]: zoomToPoint ts is error #10224
Comments
For the first point the function requires a point not an object with x and y. You have to use For the second maybe we need to fix the types to clarify is a mousewheel event |
Yes looks like his own function has a strict type on TPointer event without the WheelEvent spec. |
How should the type of each event be written? Is there a more uniform alias? |
For the mousewheel event: |
When binding events, hover the mouse over 'e', and it will show you which types are available. Here all the e's are defined: |
mosue:down mouse:up Not applicable mouseEvent, |
CheckList
Version
6.0.2
In What environments are you experiencing the problem?
No response
Node Version (if applicable)
None
Link To Reproduction
https://stackblitz.com/edit/vitejs-vite-eyhjps?file=src%2FFabric.tsx
Steps To Reproduce
Expected Behavior
Passing x y should be enough
Actual Behavior
error
Error Message & Stack Trace
No response
The text was updated successfully, but these errors were encountered: