diff --git a/src/components/imageViewer.tsx b/src/components/imageViewer.tsx index 502356e..083989f 100644 --- a/src/components/imageViewer.tsx +++ b/src/components/imageViewer.tsx @@ -156,6 +156,7 @@ const ImageViewer = forwardRef((props, ref) => translateX: manualLeft - (screenDimensions.width + IMAGE_SPACE) * activeIndexValue + + (screenDimensions.width - manualWidth) / 2 + (((activeLayoutValue?.pageX || 0) - manualLeft) * closeRateValue) / imageScaleValue + (imagePosition - 1 +