Skip to content

Commit

Permalink
Fix bug with zooming
Browse files Browse the repository at this point in the history
  • Loading branch information
iseau395 committed Oct 16, 2023
1 parent 27eff3b commit 0dc2dff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />

<title>VRC Field Map</title>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/map/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
fg_canvas.addEventListener("wheel", ev => {
input.wheel += ev.deltaY * 0.01;
input.wheel = Math.min(Math.max(-10, input.wheel), -.75);
input.wheel = Math.min(Math.max(-5, input.wheel), -.75);
}, { passive: true });
}
Expand Down

0 comments on commit 0dc2dff

Please sign in to comment.