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

Center by default and when reset transform #217

Closed
saidmoya12 opened this issue Jul 7, 2021 · 0 comments
Closed

Center by default and when reset transform #217

saidmoya12 opened this issue Jul 7, 2021 · 0 comments

Comments

@saidmoya12
Copy link

When I trigger the resetTransform button the centerView is lose

<TransformWrapper initialScale={1} minScale={0.8} maxScale={3} centerOnInit centerZoomedOut
{({ zoomIn, zoomOut, resetTransform }) => (
...
<button className="reset" onClick={()=>resetTransform ()}>[]</button>

Before the last update this works So what can I do?

Thanks!

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