-
@dbismut I am trying to build this functionality for any object in the canvas This code below works with mousewheel event from fabric though
I am trying to replicate the exact same behaviour with onPinch. Apparently I cannot get opt.e.offsetX and offsetY to set zoomPoint |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I'm not sure where you got that sandbox link but please refer to the GitHub repo for the source code of the latest sandbox: The one you linked is from an old version of the lib |
Beta Was this translation helpful? Give feedback.
I'm not sure where you got that sandbox link but please refer to the GitHub repo for the source code of the latest sandbox:
https://codesandbox.io/s/github/pmndrs/use-gesture/tree/main/demo/src/sandboxes/card-zoom
The one you linked is from an old version of the lib