Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; if (Draggables._lastScrollPointer[0] < 0) Draggables._lastScrollPointer[0] = 0; if (Draggables._lastScrollPointer[1] < 0) Draggables._lastScrollPointer[1] = 0; this.draw(Draggables._lastScrollPointer); 
if (this._isScrollChild) { Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; if (Draggables._lastScrollPointer[0] < 0) Draggables._lastScrollPointer[0] = 0; if (Draggables._lastScrollPointer[1] < 0) Draggables._lastScrollPointer[1] = 0; this.draw(Draggables._lastScrollPointer); } 
  scroll: function() {    var current = new Date();    var delta = current - this.lastScrolled;    this.lastScrolled = current;    if(this.options.scroll == window) {      with (this._getWindowScroll(this.options.scroll)) {        if (this.scrollSpeed[0] || this.scrollSpeed[1]) {          var d = delta / 1000;          this.options.scroll.scrollTo( left + d*this.scrollSpeed[0], top + d*this.scrollSpeed[1] );        }      }    } else {      this.options.scroll.scrollLeft += this.scrollSpeed[0] * delta / 1000;      this.options.scroll.scrollTop  += this.scrollSpeed[1] * delta / 1000;    }        Position.prepare();    Droppables.show(Draggables._lastPointer, this.element);    Draggables.notify('onDrag', this);    Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer);    Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000;    Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000;    if (Draggables._lastScrollPointer[0] < 0)      Draggables._lastScrollPointer[0] = 0;    if (Draggables._lastScrollPointer[1] < 0)      Draggables._lastScrollPointer[1] = 0;    this.draw(Draggables._lastScrollPointer);        if(this.options.change) this.options.change(this);  },
6445	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6445/81ea0800bc8ad92d491743716cd489cad7333723/dragdrop.js/buggy/vendor/rails/railties/html/javascripts/dragdrop.js