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:
John Blackbourn 2015-06-03 22:58:52 +00:00
parent 2da4d61f95
commit e069a38598
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -124,6 +124,7 @@ wpWidgets = {
cursor: 'move',
distance: 2,
containment: '#wpwrap',
tolerance: 'pointer',
start: function( event, ui ) {
var height, $this = $(this),
$wrap = $this.parent(),