var _device = /Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent);
var clickEvent = _device ? 'touchstart' : 'mousedown';
var moveEvent = _device ? 'touchmove' : 'mousemove';
var upEvent = _device ? 'touchend' : 'mouseup';










网友评论