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
All checks were successful
Deploy / Deploy to Production (push) Successful in 21s
This commit is contained in:
parent
1cce398ee4
commit
0bda4f8c21
1 changed files with 1 additions and 0 deletions
|
|
@ -32,6 +32,7 @@
|
||||||
iframe.style.pointerEvents = 'auto'
|
iframe.style.pointerEvents = 'auto'
|
||||||
container.classList.add('game-active')
|
container.classList.add('game-active')
|
||||||
overlay.setAttribute('data-state', 'played')
|
overlay.setAttribute('data-state', 'played')
|
||||||
|
container.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||||
})
|
})
|
||||||
|
|
||||||
deactivateBtn?.addEventListener('click', (e) => {
|
deactivateBtn?.addEventListener('click', (e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue