Skip to content

Commit 2a0d805

Browse files
committed
update
1 parent 6ad2a21 commit 2a0d805

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

xmas.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,9 @@ <h3 style="margin-top:15px">Interaction</h3>
362362
canvas.addEventListener('wheel', handleZoom);
363363

364364
initPresetsUI();
365-
document.getElementById('controls').classList.add('hidden');
365+
if (window.innerWidth < 600) {
366+
document.getElementById('controls').classList.add('hidden');
367+
}
366368
const randomStyle = Object.keys(STYLES)[Math.floor(Math.random() * Object.keys(STYLES).length)];
367369
loadStyle(randomStyle);
368370
loop();

0 commit comments

Comments
 (0)