From f900a4671741564680c13f07cef57f4e1de49d20 Mon Sep 17 00:00:00 2001 From: "omri.g" Date: Tue, 22 Dec 2020 11:04:29 +0200 Subject: [PATCH] - CR fix 4: Fixed compile error --- src/Preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Preview.tsx b/src/Preview.tsx index 0b9fcbbd..92ef3cd7 100644 --- a/src/Preview.tsx +++ b/src/Preview.tsx @@ -55,7 +55,7 @@ const Preview: React.FC = props => { const currentPreviewIndex = previewUrlsKeys.indexOf(current); const combinationSrc = isPreviewGroup ? previewUrls.get(current) : src; const showLeftOrRightSwitches = isPreviewGroup && previewGroupCount > 1; - const [lastWheelZoomDirection, setLastWheelZoomDirection] = React.useState({}); + const [lastWheelZoomDirection, setLastWheelZoomDirection] = React.useState({ wheelDirection: 0 }); const onAfterClose = () => { setScale(1);