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
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
The text was updated successfully, but these errors were encountered:
enekesabel
changed the title
Zoom not working if image is wrapped
Pan not working if image is wrapped
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
The text was updated successfully, but these errors were encountered: