examples/template_stealjs/funcunit/syn/resources/jquery.event.drag.js
function( newOffsetv ) { //should draw it on the page
			var style, dragged_element_css_offset = this.currentDelta(),
				//  the drag element's current left + top css attributes
				dragged_element_position_vector = // the vector between the movingElement's page and css positions
				this.movingElement.offsetv().minus(dragged_element_css_offset); // this can be thought of as the original offset
			this.required_css_position = newOffsetv.minus(dragged_element_position_vector);

			this.offsetv = newOffsetv;
			//dragged_element vector can probably be cached.
			style = this.movingElement[0].style;
			if (!this._cancelled && !this._horizontal ) {
				style.top = this.required_css_position.top() + "px";
			}
			if (!this._cancelled && !this._vertical ) {
				style.left = this.required_css_position.left() + "px";
			}
		}
function( newOffsetv ) { //should draw it on the page
			var style, dragged_element_css_offset = this.currentDelta(),
				//  the drag element's current left + top css attributes
				dragged_element_position_vector = // the vector between the movingElement's page and css positions
				this.movingElement.offsetv().minus(dragged_element_css_offset); // this can be thought of as the original offset
			this.required_css_position = newOffsetv.minus(dragged_element_position_vector);

			this.offsetv = newOffsetv;
			//dragged_element vector can probably be cached.
			style = this.movingElement[0].style;
			if (!this._cancelled && !this._horizontal ) {
				style.top = this.required_css_position.top() + "px";
			}
			if (!this._cancelled && !this._vertical ) {
				style.left = this.required_css_position.left() + "px";
			}
		}
function ( newOffsetv ) { //should draw it on the page var style , dragged_element_css_offset = this . currentDelta ( ) , //  the drag element's current left + top css attributes dragged_element_position_vector = // the vector between the movingElement's page and css positions this . movingElement . offsetv ( ) . minus ( dragged_element_css_offset ) ; // this can be thought of as the original offset this . required_css_position = newOffsetv . minus ( dragged_element_position_vector ) ; this . offsetv = newOffsetv ; //dragged_element vector can probably be cached. style = this . movingElement [ 0 ] . style ; if ( ! this . _cancelled && ! this . _horizontal ) { style . top = this . required_css_position . top ( ) + "px" ; } if ( ! this . _cancelled && ! this . _vertical ) { style . left = this . required_css_position . left ( ) + "px" ; } }
Sets the position of this drag.

The limit and scroll plugins
overwrite this to make sure the drag follows a particular path.

@param {jQuery.Vector} newOffsetv the position of the element (not the mouse)
Sets the position of this drag .