Skip to content

Commit

Permalink
fix: switch between before and after the image should not zoom
Browse files Browse the repository at this point in the history
  • Loading branch information
meowtec committed Aug 5, 2023
1 parent 25a7774 commit f170999
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/renderer/components/ImageViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default class ImageViewer extends PureComponent<ImageViewerProps, ImageVi

this.setState({
imageError: false,
imageNaturalWidth: this.image.naturalWidth,
})

if (!this.state.imageNaturalWidth) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f170999

Please sign in to comment.