Remove scroll check, doesn't appear to be needed anymore and it was stopping dnd on skinny (< 15px) nodes

This commit is contained in:
Nathan Gray 2016-04-07 16:48:13 +00:00
parent 4a12d3b32c
commit e69df0dd3b

View File

@ -342,15 +342,6 @@ function egwDragActionImplementation()
return ai.defaultDDHelper(ai.selected);//$j(document.createElement("div")).addClass('et2_egw_action_ddHelper'); return ai.defaultDDHelper(ai.selected);//$j(document.createElement("div")).addClass('et2_egw_action_ddHelper');
}, },
"start": function(e) { "start": function(e) {
//Stop dragging if user tries to do scrolling by mouse down and drag
//Seems this issue is only happening in FF
var $target = $j(e.originalEvent.target);
if(e.originalEvent.pageX - $target.offset().left + 15 > $target.innerWidth())
{
return false;
}
return ai.helper != null; return ai.helper != null;
}, },
revert: function(valid) revert: function(valid)