From: Alan Knowles Date: Sun, 18 Nov 2012 07:01:43 +0000 (+0800) Subject: Roo/grid/GridDragZone.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=54aa7a47808ffcae60eeeff3faa2a6ab4702420b;p=roojs1 Roo/grid/GridDragZone.js --- diff --git a/Roo/grid/GridDragZone.js b/Roo/grid/GridDragZone.js index 842e1fd24f..f07f0d25a0 100644 --- a/Roo/grid/GridDragZone.js +++ b/Roo/grid/GridDragZone.js @@ -32,8 +32,13 @@ Roo.extend(Roo.grid.GridDragZone, Roo.dd.DragZone, { var rowIndex = this.view.findRowIndex(t); if(rowIndex !== false){ var sm = this.grid.selModel; + + if (sm.getSelectedCell && !sm.getSelectedCell()) { + sm.mouseDown(e, t); + } + //if(!sm.isSelected(rowIndex) || e.hasModifier()){ - // sm.mouseDown(e, t); + // //} if (e.hasModifier()){ sm.handleMouseDown(e, t); // non modifier buttons are handled by row select.