rem: var pointer = [Event.pointerX(event), Event.pointerY(event)]; var offsets = Position.cumulativeOffset(this.handle); this.offsetX =  (pointer[0] - offsets[0]); this.offsetY =  (pointer[1] - offsets[1]); this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); 
add:  var handle = Event.element(event); var pointer  = [Event.pointerX(event), Event.pointerY(event)]; if(handle==this.track) { var offsets  = Position.cumulativeOffset(this.track); this.event = event; this.setValue(this.translateToValue( (this.isVertical() ? pointer[1]-offsets[1] : pointer[0]-offsets[0])-(this.handleLength/2) )); var offsets  = Position.cumulativeOffset(this.activeHandle); this.offsetX = (pointer[0] - offsets[0]); this.offsetY = (pointer[1] - offsets[1]); } else {  while((this.handles.indexOf(handle) == -1) && handle.parentNode) handle = handle.parentNode;  this.activeHandle    = handle; this.activeHandleIdx = this.handles.indexOf(this.activeHandle); this.updateStyles();  var offsets  = Position.cumulativeOffset(this.activeHandle); this.offsetX = (pointer[0] - offsets[0]); this.offsetY = (pointer[1] - offsets[1]); } 
context:   startDrag: function(event) {    if(Event.isLeftClick(event)) {      if(!this.disabled){        this.active = true;        var pointer = [Event.pointerX(event), Event.pointerY(event)];        var offsets = Position.cumulativeOffset(this.handle);        this.offsetX =  (pointer[0] - offsets[0]);        this.offsetY =  (pointer[1] - offsets[1]);        this.originalLeft = this.currentLeft();        this.originalTop = this.currentTop();      }      Event.stop(event);    }  },
meta: 3991	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3991/d29159eae8749c508d01bb447868321a3ba6bbfa/slider.js/clean/manager/media/script/scriptaculous/slider.js