This project adheres to Semantic Versioning.
- Fix: inconsistent zooms in different screen-sizes. #75 (thanks Blindman139)
- Declare
tslib
asdependencies
instead ofpeerDependencies
. #75 (thanks Tim Fischbach)
- Added
centerContained: boolean
to allow ensuring that images remain centered as long as they still fit into the container. #73 (thanks Tim Fischbach)
- Added
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) - Added
doubleTapZoomOutOnMaxScale: boolean
&doubleTapToggleZoom?: boolean
props to let the second of two consecutive double taps zoom out again. #70 (thanks Tim Fischbach)
- Added a 5-pixel tolerance to the drag event in order to allow clicking #57 (thanks bradcerasani)
-
Added possibility to use this module inside an image slider with own touch support #51 (thanks martinkutter)
To enabled it, just add
shouldCancelHandledTouchEndEvents={true}
- Fix SSR issue #49 (thanks bradcerasani)
- Mark all
peerDependencies
as optional
- Allow disabling double tap #46 (thanks matt-tingen)
- Export public API types #45 (thanks matt-tingen)
- Fixed typescript types #36
- Added support SSR #30 (thanks nicolas-cusan)
- Add typescript definitions
- Reduce package size
- Remove
classnames
- Remove css loader
Add support inertia #1
Initial version