Skip to content
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

zoom() not behaving as expected #431

Open
DaveMoTron opened this issue Nov 13, 2022 · 0 comments
Open

zoom() not behaving as expected #431

DaveMoTron opened this issue Nov 13, 2022 · 0 comments

Comments

@DaveMoTron
Copy link

DaveMoTron commented Nov 13, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant