Open eleweek opened 1 year ago
Can you do a small demo in codesandbox? Will be easier to debug and easier to update to a working solution
I noticed this too, but then realized that you can use the 'onTransform' property. It will run on pan as well though.
I am also seeing this issue.
I'm experiencing the same problem with onZoom
event.
@cojoclaudiu Here's a codesandbox link - https://codesandbox.io/s/react-zoom-pan-pinch-example-forked-3z7vfx?file=/src/App.js
Describe the bug zoomIn(), zoomOut(), resetTransform() do not trigger onZoom/onZoomStart/onZoomStop
This issue seems to be similar to #305
To Reproduce
onZoom()
and other handlers that do debug logging in the "Controls" story. Here is the patch:onZoom*()
handlers do not do any logging.Expected behavior I expect events to be fired and expect to see the debug logging on the console
Desktop: