Spaces:
Sleeping
Sleeping
Commit
·
03bc257
1
Parent(s):
fc4d829
bug fix
Browse files- index.html +5 -5
index.html
CHANGED
|
@@ -141,7 +141,7 @@
|
|
| 141 |
});
|
| 142 |
|
| 143 |
canvas.addEventListener('touchend', (event) => {
|
| 144 |
-
const touches = event.
|
| 145 |
if (touches.length == 0) { winnerDecided = false; }
|
| 146 |
if (winnerDecided) {
|
| 147 |
event.preventDefault();
|
|
@@ -150,11 +150,11 @@
|
|
| 150 |
updateCircles(touches);
|
| 151 |
});
|
| 152 |
|
| 153 |
-
// Start the drawing loop
|
| 154 |
-
draw();
|
| 155 |
-
|
| 156 |
window.addEventListener('resize', resizeCanvas);
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
| 158 |
});
|
| 159 |
</script>
|
| 160 |
</body>
|
|
|
|
| 141 |
});
|
| 142 |
|
| 143 |
canvas.addEventListener('touchend', (event) => {
|
| 144 |
+
const touches = event.touches;
|
| 145 |
if (touches.length == 0) { winnerDecided = false; }
|
| 146 |
if (winnerDecided) {
|
| 147 |
event.preventDefault();
|
|
|
|
| 150 |
updateCircles(touches);
|
| 151 |
});
|
| 152 |
|
|
|
|
|
|
|
|
|
|
| 153 |
window.addEventListener('resize', resizeCanvas);
|
| 154 |
+
|
| 155 |
+
setTimeout(() => {
|
| 156 |
+
resizeCanvas();
|
| 157 |
+
}, "100");
|
| 158 |
});
|
| 159 |
</script>
|
| 160 |
</body>
|