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
{{ message }}
Repository navigation
CMenu: with a submenu open, scrolling snaps the page back to the menu (Chromium 156) #383
On a recent Chromium, while a CMenu submenu is open, the page jumps back to the menu each time you scroll away from it. So you can't scroll away while the submenu is open.
How to see it
On the docs site's menu page, open the nested-submenu demo (demo 6) and open a submenu, then scroll up with the mouse wheel. Each scroll moves the page (for example to y=3845), and about 17 ms later it's back at the menu (y=4445). window.scrollTo(0, 0) jumps back within one frame too.
With Playwright 1.62.0 and its Chromium the page stays where you scrolled it. With Playwright 1.64.1 and its Chromium 156 it snaps back. The docs e2e test for the menu page hangs on main because of this: its next click targets demo 0, which can never come into view.
Not known yet
whether Citry UI's menu code causes it, for example a focus() or scrollIntoView without preventScroll when the submenu repositions, or a Chromium 156 behaviour change that the menu reacts to;
whether desktop Chrome 156 does the same (seen so far in the headless shell, which uses the same engine).
Done when
Scrolling away from an open submenu keeps the page where the user scrolled, on the current Chromium and the previous one. A browser test locks it, and the docs menu e2e test passes again without closing the menus first.
Activity