panzoom
panzoom copied to clipboard
How to initialize PanZoom element in center of parent
I want to calculate the width and height of the parent and set initial zoomLevel to fit the screen.
Did anyone solve this with this package?
This issue managed to do this with a combination of moveTo and ZoomAbs: https://github.com/anvaka/panzoom/issues/155
@alekbless can you give any example of it
https://stackoverflow.com/a/57715145/5724889
https://stackoverflow.com/questions/57712303/how-to-initially-center-an-image-inside-inline-block-container-when-using-panzoo/57715145#57715145