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

Pan not working if image is wrapped #9

Open
enekesabel opened this issue Apr 7, 2019 · 0 comments
Open

Pan not working if image is wrapped #9

enekesabel opened this issue Apr 7, 2019 · 0 comments

Comments

@enekesabel
Copy link
Contributor

enekesabel commented Apr 7, 2019

Hello Brad,
First of all thanks for this awesome library, it's an out of the box solution for my current project.
My problem is that I have to use inline svg instead of image element (I'm creating some kind of a map). The svg is contained in a wrapper element, so my code basically looks like:
<PinchZoomPan> <div className="wrapper"> {... svg loaded by some other lib} </div> </PinchZoomPan>
Zooming works perfectly, but unfortunately pan seems to be broken.

I managed to fix this with 2 lines, but I'd appreciate if you checked the code since you have a much deeper understanding of this project than me :)
Link to PR: #10

@enekesabel enekesabel changed the title Zoom not working if image is wrapped Pan not working if image is wrapped Apr 7, 2019
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