Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#52116 new defect (bug)

Twenty Twenty: Menu + Search can cause a scroll jump on close

Reported by: kjellr's profile kjellr Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: needs-patch
Focuses: javascript Cc:


If the Twenty Twenty Menu or Search modals are activated while the user is partially scrolled down the page, they will cause a glitchy reaction upon close: the page quickly scrolls to the top, and then back down to the original position. This is visible in Chrome or Firefox, but doesn't seem visible in Safari.

Here are some GIFs to illustrate the issue:

Originally noted in the [support forums].

Change History (1)

#1 @sabernhardt
3 years ago

  • Focuses javascript added
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

This relates to the scrollTo function inside a setTimeout, within hideAndShowModals.

Note: See TracTickets for help on using tickets.