From 5b128196517f671fa09e8379b2c5b05f6f3b90f9 Mon Sep 17 00:00:00 2001 From: "Robert W. Pearce" Date: Fri, 5 Apr 2024 22:14:39 -0400 Subject: [PATCH] chore: backfill docs and style for 2 new swipe to unzoom features --- README.md | 8 +++++++ source/Controlled.tsx | 20 ++++++++-------- stories/Img.stories.tsx | 52 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8fb3b7b7..fded92af 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ export interface UncontrolledProps { // Default: 'Expand image' a11yNameButtonZoom?: string + // Allow swipe gesture to unzoom. + // Default: true + canSwipeToUnzoom?: boolean + // Your image (required). children: ReactNode @@ -88,6 +92,10 @@ export interface UncontrolledProps { // Default: IEnlarge IconZoom?: ElementType + // Swipe gesture threshold after which to unzoom. + // Default: 10 + swipeToUnzoomThreshold?: number + // Specify what type of element should be used for // internal component usage. This is useful if the // image is inside a

or