Fix opening closed widget areas when dragging a widget over them.

Props polevaultweb. Fixes #13524.

git-svn-id: https://develop.svn.wordpress.org/trunk@33088 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-07-05 18:19:44 +00:00
parent ade1ffde80
commit 0f7208a1ee
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,7 @@ wpWidgets = {
* Opens and closes previously closed Sidebars when Widgets are dragged over/out of them.
*/
sidebars.droppable( {
tolerance: 'pointer',
tolerance: 'intersect',
/**
* Open Sidebar when a Widget gets dragged over it.
@ -146,6 +146,7 @@ wpWidgets = {
if ( $wrap.hasClass( 'closed' ) ) {
wpWidgets.hoveredSidebar = $wrap;
$wrap.removeClass( 'closed' );
sidebars.sortable( 'refresh' );
}
},
@ -169,6 +170,7 @@ wpWidgets = {
distance: 2,
containment: '#wpwrap',
tolerance: 'pointer',
refreshPositions: true,
start: function( event, ui ) {
var height, $this = $(this),
$wrap = $this.parent(),