add: gAccumulatedScrollErrorX = 0; gAccumulatedScrollErrorY = 0; 
context: function startScrolling(event){  var pref = Components.classes["@mozilla.org/preferences-service;1"]                       .getService(Components.interfaces.nsIPrefBranch);  if (gScrollingView || event.button != 1)    return;  if (!pref.getBoolPref("general.autoScroll"))    return;  if (event.originalTarget instanceof XULElement &&      ((event.originalTarget.localName == "thumb")        || (event.originalTarget.localName == "slider")        || (event.originalTarget.localName == "scrollbarbutton")))    return;  if (!gAutoScrollPopup) {    const XUL_NS          = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";    gAutoScrollPopup = document.createElementNS(XUL_NS, "popup");    gAutoScrollPopup.id = "autoscroller";    gAutoScrollPopup.addEventListener("popuphidden", stopScrolling, true);    document.documentElement.appendChild(gAutoScrollPopup);  }  gScrollingView = event.originalTarget.ownerDocument.defaultView;  var scrollingDir;  if (gScrollingView.scrollMaxX > 0) {    gAutoScrollPopup.setAttribute("scrolldir", gScrollingView.scrollMaxY > 0 ? "NSEW" : "EW");  }  else if (gScrollingView.scrollMaxY > 0) {    gAutoScrollPopup.setAttribute("scrolldir", "NS");  }  else {    gScrollingView = null; // abort scrolling    return;  }  document.popupNode = null;  gAutoScrollPopup.showPopup(document.documentElement, event.screenX, event.screenY,                             "popup", null, null);  gIgnoreMouseEvents = true;  gStartX = event.screenX;  gStartY = event.screenY;  gCurrX = event.screenX;  gCurrY = event.screenY;  addEventListener('mousemove', handleMouseMove, true);  addEventListener('mouseup', handleMouseUpDown, true);  addEventListener('mousedown', handleMouseUpDown, true);  gAutoScrollTimer = setInterval(autoScrollLoop, 10);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/152c89e6b07d14b87ff0b30755fd3ca999011e1e/utilityOverlay.js/buggy/xpfe/communicator/resources/content/utilityOverlay.js