Skip to content

Commit

Permalink
rfgdrfg
Browse files Browse the repository at this point in the history
  • Loading branch information
loglot authored Sep 1, 2023
1 parent 475d82b commit c3f0151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var scaleY = 0;
const windowHeight = window.innerHeight;

// Calculate the desired width and height based on the window's dimensions
if (currentHeight > windowHeight) {
if (currentHeight >= windowHeight) {
const desiredHeight = windowHeight;
const aspectRatio = originalWidth / originalHeight;
const desiredWidth = desiredHeight / aspectRatio;
Expand Down

0 comments on commit c3f0151

Please sign in to comment.