Skip to content

Commit

Permalink
Fix joystick
Browse files Browse the repository at this point in the history
  • Loading branch information
lourencofsilva committed Apr 14, 2024
1 parent 5e48016 commit d32d929
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
7 changes: 7 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,10 @@ body {
transform: scale(1.5);
}
}


@media (max-width: 600px) {
.fix-ios {
bottom: 120px !important;
}
}
22 changes: 0 additions & 22 deletions app/test/page.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion components/Game.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function GamePlanet({ planetID }: { planetID: string }) {
onFrame={optimisticUpdate}
/>
</Canvas>
<div style={{ position: "absolute", bottom: "20px", right: "20px" }}>
<div className="fix-ios" style={{ position: "absolute", bottom: "30px", right: "20px" }}>
<Joystick
size={100}
sticky={false}
Expand Down

0 comments on commit d32d929

Please sign in to comment.