From dcab4240ab4de063ad3ae4945f7d7ffcd23a1cfa Mon Sep 17 00:00:00 2001 From: ptomooka <46693321+ptomooka@users.noreply.github.com> Date: Sun, 23 Aug 2020 15:51:37 -0700 Subject: [PATCH] Default to (and thus allow) a zero second centerOn duration Currently, duration = params.duration || 300 excludes the possibility of an instantaneous centerOn, which is sometimes desirable. This now adds instantaneous functionality, and sets this as the default. --- src/image-zoom/image-zoom.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image-zoom/image-zoom.component.tsx b/src/image-zoom/image-zoom.component.tsx index e06c90f..56713a3 100644 --- a/src/image-zoom/image-zoom.component.tsx +++ b/src/image-zoom/image-zoom.component.tsx @@ -603,7 +603,7 @@ export default class ImageViewer extends React.Component