You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should 'stick' to the selected option and highlight whatever option is displayed on the right
( my old JS had that )
functionstickPaddleToMenuOption(paddle,option){constoptionRect=option.getBoundingClientRect();paddle.style.top=`${optionRect.top+optionRect.height/2-paddle.offsetHeight/2}px`;}leftMenuOptions.forEach(option=>{option.addEventListener('mouseenter',()=>stickPaddleToMenuOption(leftPaddle,option));});rightMenuOptions.forEach(option=>{option.addEventListener('mouseenter',()=>stickPaddleToMenuOption(rightPaddle,option));});updatePaddlePositions();window.addEventListener('resize',updatePaddlePositions);rightMenuContainer.addEventListener('mouseover',event=>{constoption=event.target.closest('.menu-option');if(option){stickPaddleToMenuOption(rightPaddle,option);}});// Use event delegation for statically loaded content in the left-menudocument.querySelector('left-menu').addEventListener('mouseover',event=>{constoption=event.target.closest('.menu-option');if(option){stickPaddleToMenuOption(leftPaddle,option);}});
it should 'stick' to the selected option and highlight whatever option is displayed on the right
( my old JS had that )
and
The text was updated successfully, but these errors were encountered: