jquery 拖拽插件easydrag点击位置偏移问题
$.updatePosition = function(e) {var pos = $.getMousePosition(e);var spanX = (pos.x - lastMouseX);var spanY = (pos.y - lastMouseY);if(lastElemTop + spanY != 0){$(currentElement).css("top", (lastElemTop + spanY));}if(lastElemLeft + spanX != 0){$(currentElement).css("left", (lastElemLeft + spanX));}else{$(currentElement).css("left", -$(currentElement).width());}};