mobile optimisation

This commit is contained in:
2026-03-20 12:44:48 +01:00
parent 1af6ae3854
commit 8e034f30ef
5 changed files with 193 additions and 50 deletions

View File

@@ -103,6 +103,9 @@
// Initialize
function init() {
// Skip animation on mobile/touch devices for performance
if (window.innerWidth <= 768 || ('ontouchstart' in window)) return;
canvas = document.getElementById('hexCanvas');
if (!canvas) return;