Skip to content

Commit

Permalink
fixed zoom out
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehran7kl committed Sep 8, 2024
1 parent 99340eb commit 07c4be3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fractals/mandelbrot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ let viewport = {

window.addEventListener("keypress",e=>{
const sens = viewport.width/5;
console.log(e.key);

switch(e.key)
{
Expand All @@ -66,7 +65,7 @@ window.addEventListener("keypress",e=>{
viewport.width*=0.9;
break;

case "e":
case "q":
viewport.width*=1.1;
break;
}
Expand Down

0 comments on commit 07c4be3

Please sign in to comment.