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
SVG content is not centered/correctly panned when scale is < 1 #3
Comments
Thank you. You're right. I will try to fix it. |
v0.3.0 has been released to fix this bug. Please give it a try. |
Hello. Doesn't work yet in this way: when scale is < 1 you can't pan the drawing. https://jsfiddle.net/rqcn8vo5/1/ Also: I suggest you to add borders in your examples, both in the drawing and in the container. Otherwise it's impossible to figure what's happening. https://github.com/timmywil/panzoom with the 'overflow' property set, which creates scrollbars. It will help you in understanding how to manage the discussed case |
OK, panning is implemented when scale < 1 on v0.4.0. Thank you. |
Hello.
As you can see in this jsfiddle:
https://jsfiddle.net/pLhb419u/
... when the scale amount is < 1, the svg is resized in the left top corner. Is there a way to fix this (or at least a work around) so to see the picture resized at the mouse position or at least centered?
Thanks for your great work!
The text was updated successfully, but these errors were encountered: