Skip to content

Release 2.0.1

Latest
Compare
Choose a tag to compare
@Glazzes Glazzes released this 22 Jun 20:53
· 5 commits to main since this release

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 to ResumableZoom and Gallery components.
  • Add overPanning property to ResuambleZoom component.
  • Adds basic gesture callbacks to Gallery component, including the following: onPanStart, onPanEnd, onPinchStart and onPinchEnd.
  • Add support for vertical mode in Gallery component.
  • Add support for custom scroll transitions in Gallery component through customTransition callback property.

🐛 Bug Fixes

  • ResumableZoom's extendGestures property now supports components bigger than ResuambleZoom 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 to allowPinchPanning.
  • Remove hitslop from ResumableZoom in favor of extendGestures property.
  • Removed onSwipeRight and onSwipeLeft from ResumableZoom in favor of the new onSwipe property.
  • Removed onHorizontalBoundsExceeded from ResumableZoom in favor of the new onOverPanning property.
  • CropZoom's maxScale 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 in ResumableZoom and CropZoom components.
  • Fix typos in SnapbackZoom documentation #24 by @tannermares