Switch to pointer tolerance for improved drag and drop behaviour when reordering widgets.

Props jkudish, MikeHansenMe.
Fixes #20791

Built from https://develop.svn.wordpress.org/trunk@32689


git-svn-id: http://core.svn.wordpress.org/trunk@32659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-06-03 22:59:25 +00:00
parent 6f6788c4af
commit acec5066f6
5 changed files with 5 additions and 3 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;

File diff suppressed because one or more lines are too long

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(),

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.3-alpha-32688';
$wp_version = '4.3-alpha-32689';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.