Why 2.0.1 and not 2.0.0?
Because I had 1.0.0 on package.json the very first time I published and release-it
tool didn't ask me which version to use, so it just bumped the major.
✨ New Features
- Add
onSwipe
property toResumableZoom
andGallery
components. - Add
overPanning
property toResuambleZoom
component. - Adds basic gesture callbacks to
Gallery
component, including the following:onPanStart
,onPanEnd
,onPinchStart
andonPinchEnd
. - Add support for vertical mode in
Gallery
component. - Add support for custom scroll transitions in
Gallery
component throughcustomTransition
callback property.
🐛 Bug Fixes
ResumableZoom
'sextendGestures
property now supports components bigger thanResuambleZoom
dimensions #20- Fix incorrect tap edge detection in
Gallery
component, it's now bound to the visible area of the current item rather than the whole item itself. - Add missing boolean flag to
Gallery
's reset method.
💥 Breaking Changes
- Renamed all instances of
panWithPinch
property toallowPinchPanning
. - Remove
hitslop
fromResumableZoom
in favor ofextendGestures
property. - Removed
onSwipeRight
andonSwipeLeft
fromResumableZoom
in favor of the newonSwipe
property. - Removed
onHorizontalBoundsExceeded
fromResumableZoom
in favor of the newonOverPanning
property. CropZoom
'smaxScale
property no longer accepts negative values as the condition to infere max scale.Gallery
component's default animation has been removed and the default mode is now a slider, the previous animation can still be used by importing it.
🗃️ Miscelaneous
- Replace
Gallery
's custom pinch implementation for the common one used inResumableZoom
andCropZoom
components. - Fix typos in
SnapbackZoom
documentation #24 by @tannermares