Skip to content

Commit 73d71f9

Browse files
committed
Try to fix scrolling on mobile
1 parent 85fdf89 commit 73d71f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<head>
33
<title>Snake WebAssembly HTML5 Canvas</title>
44
<style>
5+
body {
6+
overflow-y: hidden;
7+
}
58
@font-face {
69
font-family: AnekLatin;
710
src: url(fonts/AnekLatin-Light.ttf);
@@ -12,7 +15,7 @@
1215
left: 50%;
1316
transform: translate(-50%, -50%);
1417
height: 100%;
15-
overscroll-behavior:none;
18+
touch-action: none;
1619
}
1720
</style>
1821
</head>

0 commit comments

Comments
 (0)