Skip to content

Commit

Permalink
- CR fix 4: Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
omri.g committed Dec 22, 2020
1 parent 0e60a35 commit f900a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Preview: React.FC<PreviewProps> = 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);
Expand Down

0 comments on commit f900a46

Please sign in to comment.