mobile optimisation
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user