mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
6f6788c4af
commit
acec5066f6
@ -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;
|
||||
|
2
wp-admin/js/customize-widgets.min.js
vendored
2
wp-admin/js/customize-widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -124,6 +124,7 @@ wpWidgets = {
|
||||
cursor: 'move',
|
||||
distance: 2,
|
||||
containment: '#wpwrap',
|
||||
tolerance: 'pointer',
|
||||
start: function( event, ui ) {
|
||||
var height, $this = $(this),
|
||||
$wrap = $this.parent(),
|
||||
|
2
wp-admin/js/widgets.min.js
vendored
2
wp-admin/js/widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user