event-drag-debug.js revision 870b1351b8dad6efd508aacc807cd53dbd43b7c8
/*
nodeA.on("dragstart", function(e) { }, {
minTime:10,
minDistance:20
});
nodeA.on("drag", function(e) { });
nodeA.on("dragend", function(e) { });
*/
TOUCH_EVENT_MAP = {
start: "touchstart",
move: "touchmove",
end: "touchend"
},
MOUSE_EVENT_MAP = {
start: "mousedown",
move: "mousemove",
end: "mouseup"
},
START = "start",
MOVE = "move",
END = "end";
},
if (node._dragStart) {
}
},
processArgs : function(args) {
if (!("minTime" in params)) {
}
if (!("minDistance" in params)) {
}
return params;
},
var node = e.currentTarget,
start = true, // always true for mouse
e.preventDefault();
if (e.touches) {
e = e.touches[0];
}
if (start) {
payload = {
};
}
},
MIN_TIME : 0,
MIN_DISTANCE : 3
});
node._drag = node.get("ownerDocument").on(EVENT[MOVE], Y.bind(this._onDrag, this), null, node, subscriber, ce);
},
}
},
e.preventDefault();
if (drag) {
if (e.touches) {
e = e.touches[0];
}
if (drag) {
payload = {
};
}
}
}
});
node._dragEnd = node.get("ownerDocument").on(EVENT[END], Y.bind(this._onEnd, this), null, node, subscriber, ce);
},
}
},
e.preventDefault();
if (drag) {
if (e.changedTouches) {
e = e.changedTouches[0];
} else {
drag = false;
}
}
if (drag) {
payload = {
};
} else {
}
} else {
}
}
});