Open christianp opened 6 months ago
This code I think scrolls to the next element: Array.from(document.querySelectorAll('main > *')).filter(e => e.getBoundingClientRect().top > 0)[0].scrollIntoView()
Array.from(document.querySelectorAll('main > *')).filter(e => e.getBoundingClientRect().top > 0)[0].scrollIntoView()
This code I think scrolls to the next element:
Array.from(document.querySelectorAll('main > *')).filter(e => e.getBoundingClientRect().top > 0)[0].scrollIntoView()