Roo/dd/DragDrop.js
authorAlan Knowles <alan@roojs.com>
Tue, 24 Dec 2013 06:40:15 +0000 (14:40 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 24 Dec 2013 06:40:15 +0000 (14:40 +0800)
Roo/dd/DragDrop.js

index b2f7a42..286b7ac 100644 (file)
@@ -566,6 +566,7 @@ Roo.extend(Roo.dd.DragDrop, Roo.util.Observable , {
     init: function(id, sGroup, config) {
         this.initTarget(id, sGroup, config);
         Event.on(this.id, "mousedown", this.handleMouseDown, this);
+        Event.on(this.id, "touchstart", this.handleMouseDown, this);
         // Event.on(this.id, "selectstart", Event.preventDefault);
     },
 
@@ -790,6 +791,8 @@ Roo.extend(Roo.dd.DragDrop, Roo.util.Observable , {
     unreg: function() {
         Event.un(this.id, "mousedown",
                 this.handleMouseDown);
+        Event.un(this.id, "touchstart",
+                this.handleMouseDown);
         this._domRef = null;
         this.DDM._remove(this);
     },