Customizer: Reset horizontal scroll position when finished dragging a nav menu item.
Props karinedo, austinginder, adamsilverstein, tyxla. Fixes #33367. git-svn-id: https://develop.svn.wordpress.org/trunk@34834 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3cde6d29c7
commit
a743e47af8
|
@ -1871,6 +1871,9 @@
|
|||
|
||||
control.isSorting = false;
|
||||
|
||||
// Reset horizontal scroll position when done dragging.
|
||||
control.$sectionContent.scrollLeft( 0 );
|
||||
|
||||
_.each( menuItemContainerIds, function( menuItemContainerId ) {
|
||||
var menuItemId, menuItemControl, matches;
|
||||
matches = menuItemContainerId.match( /^customize-control-nav_menu_item-(-?\d+)$/, '' );
|
||||
|
|
Loading…
Reference in New Issue