A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
tslib
as dependencies
instead of peerDependencies
. #75 (thanks Tim Fischbach)centerContained: boolean
to allow ensuring that images remain centered as long as they still fit into the container. #73 (thanks Tim Fischbach)enforceBoundsDuringZoom: boolean
prop to ensures that it's also not possible to move the image out of bounds with a pinch gesture. #72 (thanks Tim Fischbach)doubleTapZoomOutOnMaxScale: boolean
& doubleTapToggleZoom?: boolean
props to let the second of two consecutive double taps zoom out again. #70 (thanks Tim Fischbach)You can find old releases (1.x, 2.x, 3.x, 4.x) in a CHANGELOG.md
file