-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
climbing: Change image quality by zooming #360
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
5f69537
to
50a7f39
Compare
50a7f39
to
7a8eb3e
Compare
992deba
to
99d7bde
Compare
99d7bde
to
57a1a9b
Compare
57a1a9b
to
5c8ff4d
Compare
5c8ff4d
to
160db52
Compare
160db52
to
56e5293
Compare
56e5293
to
3ef25af
Compare
@@ -4,7 +4,7 @@ import SplitPane from 'react-split-pane'; | |||
import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole file needs some refactoring, will be done in different PR.
@@ -1,5 +1,6 @@ | |||
export const getContainedSizeImage = (image) => { | |||
const ratio = image.naturalWidth / image.naturalHeight; | |||
const ratio = | |||
image.naturalHeight === 0 ? 0 : image.naturalWidth / image.naturalHeight; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was causing really weird visual glitch with width because it was NaN
No description provided.