Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
harupy committed Apr 27, 2022
1 parent 52bdadf commit 27306b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,10 @@ const Preview: React.FC<PreviewProps> = props => {
);

const onDoubleClick = () => {
if (!visible) {
return;
if (visible) {
setScale(1);
setPosition(initialPosition);
}
setScale(1);
setPosition(initialPosition);
};

useEffect(() => {
Expand Down

0 comments on commit 27306b9

Please sign in to comment.