Switch to pointer tolerance for improved drag and drop behaviour when reordering widgets.
Props jkudish, MikeHansenMe. Fixes #20791 git-svn-id: https://develop.svn.wordpress.org/trunk@32689 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2da4d61f95
commit
e069a38598
@ -1606,6 +1606,7 @@
|
||||
items: '> .customize-control-widget_form',
|
||||
handle: '.widget-top',
|
||||
axis: 'y',
|
||||
tolerance: 'pointer',
|
||||
connectWith: '.accordion-section-content:has(.customize-control-sidebar_widgets)',
|
||||
update: function() {
|
||||
var widgetContainerIds = self.$sectionContent.sortable( 'toArray' ), widgetIds;
|
||||
|
@ -124,6 +124,7 @@ wpWidgets = {
|
||||
cursor: 'move',
|
||||
distance: 2,
|
||||
containment: '#wpwrap',
|
||||
tolerance: 'pointer',
|
||||
start: function( event, ui ) {
|
||||
var height, $this = $(this),
|
||||
$wrap = $this.parent(),
|
||||
|
Loading…
Reference in New Issue
Block a user