Make WordPress Core

Opened 2 years ago

Last modified 19 months 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:

Description

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:

https://cldup.com/82Y1UCd6mV.gif

https://cldup.com/Oarqq6OQzP.gif

Originally noted in the [support forums https://wordpress.org/support/topic/toggle-close-search-menu-rapidly-scrolls-glitch/].

Change History (1)

#1 @sabernhardt
19 months 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.