Replies: 1 comment
-
|
I can't open codepen. But most likely you need this: https://konvajs.org/docs/sandbox/Relative_Pointer_Position.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sure similar question has been asked here before, since it seems to be a common use case. But I couldn't find solutions for my issue on docs or discussions, hence posting a new question.
I am trying to implement zoom/pan features into my whiteboard app alongwith the freedrawing tool. The issue I face is, after I have zoomed in or out, I notice some offset between my pointer location and where the actual shape is drawn on the board. How do I fix this?
I have created a reproducible example in the codepen below, using code samples from the docs.
https://codepen.io/shubhendumadhukar/pen/wBwpaPq
Beta Was this translation helpful? Give feedback.
All reactions