Skip to content

Commit

Permalink
fluidscale: prevent wrong zoomlevel
Browse files Browse the repository at this point in the history
  • Loading branch information
jenswittmann committed Feb 6, 2025
1 parent 88bb21f commit 4c507cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
checkZoom() {
this.zoomlevel = window.outerWidth / window.innerWidth;
if (this.zoomlevel > 2) {
if (this.zoomlevel < 0.1 || this.zoomlevel >= 2) {
this.zoomlevel = 1;
}
}
}
}"
x-init="
Expand Down

0 comments on commit 4c507cc

Please sign in to comment.