[wp-trac] [WordPress Trac] #49025: Twenty Twenty: Modal menu link with hash should scroll to that section on the page.

WordPress Trac noreply at wordpress.org
Tue Apr 7 04:06:54 UTC 2020


#49025: Twenty Twenty: Modal menu link with hash should scroll to that section on
the page.
---------------------------+------------------------------
 Reporter:  acosmin        |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:  5.3.1
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  ui, javascript
---------------------------+------------------------------

Comment (by bluewill):

 There is still a problem in mobile platforms when using hash anchors from
 the nav menu.

 The thing seem to be a conflict with another function that scrolls the
 page to where the user was before opening the nav menu.

 Comenting "_win.scrollTo( 0, Math.abs( _win.twentytwenty.scrolled +
 getAdminBarHeight() ) );" this line after having implemented any of the
 previous methods will do the work resolving the main bug, but you loose
 the cool page scrolling down when you close the menu feature. Don't have
 time to look forward how to compatibilize the two :(

 Also: This is my first comment so: Is this the way to inform this kind of
 thing? Is this usefull at all?

 Cheers!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49025#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list