[dashboard] Improve dimensions dragging
@@ -601,7 +601,7 @@ ${ dashboard.layout_skeleton(suffix='search') }
<!-- ko if: !$parents[1].isLoading() || widgetType() == 'hit-widget' -->
<div class="edit-dimensions">
- <div data-bind="sortable: { data: properties.facets, allowDrop: false, options: { axis: 'x', containment: 'parent', handle: '.move-dimension'}}" class="inline-block">
+ <div data-bind="sortable: { data: properties.facets, allowDrop: false, options: { axis: 'x', handle: '.move-dimension', tolerance: 'pointer'}}" class="inline-block">
<div class="badge dimensions-badge-container" data-bind="css: { 'is-editing': isEditing }, click: function(){ $parent.isAdding(false); $parent.properties.facets().forEach(function(f){ f.isEditing(false); }); isEditing(true); }" title="${ _('Edit') }">
<span data-bind="text: getPrettyMetric($data)"></span>
<span class="badge badge-info dimensions-badge" data-bind="text: field, attr: { 'title': field }"></span>
