[Bug] Hover effect happens with the mouse outside the navbar

Video witch show the bug:

https://jam.dev/c/65ecd8eb-5c14-4475-a5d4-4b13d4ce8561

In my computer i fix the bug with this css line:

li.nav-element:not(:hover) {
    overflow: hidden;
}

Weird, thanks. What browser etc are you using?

Chrome 125 on Windows 11