rem: draw: function(event) { var pointer = [Event.pointerX(event), Event.pointerY(event)]; var offsets = Position.cumulativeOffset(this.element); offsets[0] -= this.currentLeft(); offsets[1] -= this.currentTop(); 
add: draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1];  if(this.options.scroll && (this.options.scroll != window)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; }  var p = [0,1].map(function(i){ return (point[i]-pos[i]-this.offset[i]) }.bind(this));  if(this.options.snap) { if(typeof this.options.snap == 'function') { p = this.options.snap(p[0],p[1],this); } else { if(this.options.snap instanceof Array) { p = p.map( function(v, i) { return Math.round(v/this.options.snap[i])*this.options.snap[i] }.bind(this)) } else { p = p.map( function(v) { return Math.round(v/this.options.snap)*this.options.snap }.bind(this)) } }}  
context:   draw: function(event) {    var pointer = [Event.pointerX(event), Event.pointerY(event)];    var offsets = Position.cumulativeOffset(this.element);    offsets[0] -= this.currentLeft();    offsets[1] -= this.currentTop();    var style = this.element.style;    if((!this.options.constraint) || (this.options.constraint=='horizontal'))      style.left = (pointer[0] - offsets[0] - this.offsetX) + "px";    if((!this.options.constraint) || (this.options.constraint=='vertical'))      style.top  = (pointer[1] - offsets[1] - this.offsetY) + "px";    if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering  },
meta: 3974	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3974/af9adbf17404d887f31369756326b0109da7ae2b/dragdrop.js/buggy/root/static/js/dragdrop.js