I would like to stop the event from listening, on the wheel after it's been executed. I can't find why the event listener is still listening.
const scrollMe = document.querySelector('.scroll-me');
const imgMaximmo = document.querySelector('.maximmo');
scrollingTo = () =>{
window.scrollTo(0,850);
}
cover.addEventListener('wheel', ()=>{
cover.style.height = '105vh';
cover.style.position = 'relative';
cover.style.marginTop ='-52px';
imgMaximmo.style.marginTop ='2%';
scrollingTo();
})
cover.removeEventListener('wheel', scrollingTo, { capture: false });```