examples/template_stealjs/funcunit/syn/resources/jquery.event.drag.js
function( element, offsetX, offsetY ) {
			this._offsetX = offsetX || 0;
			this._offsetY = offsetY || 0;

			var p = this.mouseStartPosition;

			this.movingElement = $(element);
			this.movingElement.css({
				top: (p.y() - this._offsetY) + "px",
				left: (p.x() - this._offsetX) + "px",
				display: 'block',
				position: 'absolute'
			}).show();

			this.mouseElementPosition = new $.Vector(this._offsetX, this._offsetY);
		}
function( element, offsetX, offsetY ) {
			this._offsetX = offsetX || 0;
			this._offsetY = offsetY || 0;

			var p = this.mouseStartPosition;

			this.movingElement = $(element);
			this.movingElement.css({
				top: (p.y() - this._offsetY) + "px",
				left: (p.x() - this._offsetX) + "px",
				display: 'block',
				position: 'absolute'
			}).show();

			this.mouseElementPosition = new $.Vector(this._offsetX, this._offsetY);
		}
function ( element , offsetX , offsetY ) { this . _offsetX = offsetX || 0 ; this . _offsetY = offsetY || 0 ; var p = this . mouseStartPosition ; this . movingElement = $ ( element ) ; this . movingElement . css ( { top : ( p . y ( ) - this . _offsetY ) + "px" , left : ( p . x ( ) - this . _offsetX ) + "px" , display : 'block' , position : 'absolute' } ) . show ( ) ; this . mouseElementPosition = new $ . Vector ( this . _offsetX , this . _offsetY ) ; }
Use a representative element, instead of the movingElement.
@param {HTMLElement} element the element you want to actually drag
@param {Number} offsetX the x position where you want your mouse on the object
@param {Number} offsetY the y position where you want your mouse on the object
Use a representative element instead of the movingElement .