try and get ctrl-enter to add a clear all
[roojs1] / Roo / dd / DragDrop.js
index bc11e61..c531e80 100644 (file)
@@ -822,23 +822,31 @@ Roo.extend(Roo.dd.DragDrop, Roo.util.Observable , {
      * @private
      */
     handleMouseDown: function(e, oDD){
-        
-        Roo.log(e);
-        if (this.primaryButtonOnly && e.button != 0) {
+     
+        if (!Roo.isTouch && this.primaryButtonOnly && e.button != 0) {
+            //Roo.log('not touch/ button !=0');
             return;
         }
+        if (e.browserEvent.touches && e.browserEvent.touches.length != 1) {
+            return; // double touch..
+        }
+        
 
         if (this.isLocked()) {
+            //Roo.log('locked');
             return;
         }
 
         this.DDM.refreshCache(this.groups);
-
+//        Roo.log([Roo.lib.Event.getPageX(e), Roo.lib.Event.getPageY(e)]);
         var pt = new Roo.lib.Point(Roo.lib.Event.getPageX(e), Roo.lib.Event.getPageY(e));
         if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) )  {
+            //Roo.log('no outer handes or not over target');
+                // do nothing.
         } else {
+//            Roo.log('check validator');
             if (this.clickValidator(e)) {
-
+//                Roo.log('validate success');
                 // set the initial element position
                 this.setStartPosition();