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
Hi there, I would love to provide a working example of my issue, however when recreating it outside my complex app, it works as expected.
My issue is, trying to use the zoom() function to zoom programattically, it's zooming in off center. the zoomIn() function works nicely (zooms on the center of the viewport), as does zooming on a mousepoint, it's only the zoom() function that's not playing along.
I was wondering if you could give me some insight into what could cause it to behave like this? A fit and centered svg, trigger zoom(10) and suddenly it's shot off into the top left corner.
Thanks for your time, apologies for the lack of code examples.
The text was updated successfully, but these errors were encountered:
Hi there, I would love to provide a working example of my issue, however when recreating it outside my complex app, it works as expected.
My issue is, trying to use the zoom() function to zoom programattically, it's zooming in off center. the zoomIn() function works nicely (zooms on the center of the viewport), as does zooming on a mousepoint, it's only the zoom() function that's not playing along.
I was wondering if you could give me some insight into what could cause it to behave like this? A fit and centered svg, trigger zoom(10) and suddenly it's shot off into the top left corner.
Thanks for your time, apologies for the lack of code examples.
The text was updated successfully, but these errors were encountered: