blog > article > game bloc : add scroll into view on game launch. closes #43
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s

This commit is contained in:
isUnknown 2026-03-26 15:42:06 +01:00
parent 1cce398ee4
commit 0bda4f8c21

View file

@ -32,6 +32,7 @@
iframe.style.pointerEvents = 'auto'
container.classList.add('game-active')
overlay.setAttribute('data-state', 'played')
container.scrollIntoView({ behavior: 'smooth', block: 'center' })
})
deactivateBtn?.addEventListener('click', (e) => {