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: |
|
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:
Originally noted in the [support forums https://wordpress.org/support/topic/toggle-close-search-menu-rapidly-scrolls-glitch/].
Change History (1)
Note: See
TracTickets for help on using
tickets.
This relates to the
scrollTo
function inside a setTimeout, withinhideAndShowModals
.