event-move.js revision 1ef3baa403986374362a3287c4aa7ddb032e1684
// TODO: Better way to sniff 'n' switch touch support?
start: "touchstart",
move: "touchmove",
end: "touchend"
} : {
start: "mousedown",
move: "mousemove",
end: "mouseup"
},
START = "start",
MOVE = "move",
END = "end",
_MOVE_START_HANDLE = "_msh",
_MOVE_HANDLE = "_mh",
_MOVE_END_HANDLE = "_meh",
_MOVE_START = "_ms",
_MOVE = "_m",
MIN_TIME = "minTime",
MIN_DISTANCE = "minDistance",
OWNER_DOCUMENT = "ownerDocument",
NODE_TYPE = "nodeType",
PUB_CFG = {
emitFacade:false
},
// TODO: Should this be in SynthEvent as the default?
_defArgsProcessor = function(args) {
},
},
define('movestart', {
this._onStart,
this,
node,
ce));
},
if (startHandle) {
}
},
processArgs : function(args) {
}
if (!(MIN_DISTANCE in params)) {
}
return params;
},
e.preventDefault();
var origE = e,
start = true,
if (e.touches) {
e = e.touches[0];
} else {
}
if (start) {
} else {
if (minTime > 0) {
}, this));
}
if (minDistance > 0) {
if (Math.abs(em.pageX - startXY[0]) > minDistance || Math.abs(em.pageY - startXY[1]) > minDistance) {
}
}, this));
}
}
}
},
}
}
}
},
if (params) {
}
e.type = "movestart";
},
MIN_TIME : 0,
MIN_DISTANCE : 0
});
define('move', {
this._onMove,
this,
node,
ce);
},
if (moveHandle) {
moveHandle.detach();
}
},
origE = e;
if (move) {
if (e.touches) {
e = e.touches[0];
}
if (move) {
e.type = "move";
}
}
}
});
define('moveend', {
this._onEnd,
this,
node,
ce);
},
if (endHandle) {
}
},
origE = e;
if (moveEnd) {
if (e.changedTouches) {
e = e.changedTouches[0];
} else {
moveEnd = false;
}
}
if (moveEnd) {
e.type = "moveend";
}
}
}
});