rem: open(urlBase + "zoom=true&type=" + type + "&intf=" + intf + "&domain=" + domain + "&reports=" + report + "&start=" + newGraphStart + "&end=" + newGraphEnd, "_self");  } } 
add: if (minY < 0) { minY = 0; }  if (maxY > gZoomGraphObj.zoomBoxHeight) { maxY = gZoomGraphObj.zoomBoxHeight; }  if ((minX != maxX) || (minY != maxY)) { var OnePixel = (graphEnd - graphStart) / gZoomGraphObj.zoomBoxWidth;  newGraphEnd = Math.round(graphEnd - (gZoomGraphObj.zoomBoxWidth - maxX) * OnePixel); newGraphStart = Math.round(graphStart + minX * OnePixel);   var urlBase = cURLBase;          var type = gUrlObj.getUrlParameterValue("type"); var reports = gUrlObj.getUrlParameterValue("report"); var intf = gUrlObj.getUrlParameterValue("intf"); var domain = gUrlObj.getUrlParameterValue("domain");   setLocation(urlBase + "zoom=true&type=" + type + "&intf=" + intf + "&domain=" + domain + "&reports=" + reports + "&start=" + newGraphStart + "&end=" + newGraphEnd); } } } 
context: function onMouseUpEvent(e) { var graphStart; var graphEnd; var newGraphStart; var newGraphEnd; gMouseObj.setEvent(e); graphStart = parseInt(gUrlObj.getUrlParameterValue("start")); graphEnd = parseInt(gUrlObj.getUrlParameterValue("end")); if ((gMouseObj.rightButtonPressed()) && (insideZoomBox())) {  var Timespan = graphEnd - graphStart;  gMouseObj.dragging = false;  newGraphEnd = graphEnd + Timespan * 2;  newGraphStart = graphStart - Timespan * 2;  var urlBase = cURLBase;  var type = gUrlObj.getUrlParameterValue("type");  var reports = gUrlObj.getUrlParameterValue("report");  var intf = gUrlObj.getUrlParameterValue("intf");  var domain = gUrlObj.getUrlParameterValue("domain");  open(urlBase + "zoom=true&type=" + type + "&intf=" + intf + "&domain=" + domain + "&reports=" + reports + "&start=" + newGraphStart + "&end=" + newGraphEnd, "_self"); } if ((gMouseObj.leftButtonPressed()) && (gMouseObj.dragging)) {  gMouseObj.getCurrentPosition();  gMouseObj.saveCurrentToStopPosition();  gMouseObj.dragging = false;  var x1 = gMouseObj.startedX - gZoomGraphObj.zoomBoxLeft;  var x2 = gMouseObj.stoppedX - gZoomGraphObj.zoomBoxLeft;  var y1 = gMouseObj.startedY - gZoomGraphObj.zoomBoxTop;  var y2 = gMouseObj.stoppedY - gZoomGraphObj.zoomBoxTop;  var minX = Math.min(x1, x2);  var maxX = Math.max(x1, x2);  var minY = Math.min(y1, y2);  var maxY = Math.max(y1, y2);  if (minX < 0) {   minX = 0;  }  if (maxX > gZoomGraphObj.zoomBoxWidth) {   maxX = gZoomGraphObj.zoomBoxWidth;  }  if (minY < 0) {   minY = 0;  }  if (maxY > gZoomGraphObj.zoomBoxHeight) {   maxY = gZoomGraphObj.zoomBoxHeight;  }  if ((minX != maxX) || (minY != maxY)) {   var OnePixel = (graphEnd - graphStart) / gZoomGraphObj.zoomBoxWidth;  // Represent # of seconds for 1 pixel on the graph   newGraphEnd = Math.round(graphEnd - (gZoomGraphObj.zoomBoxWidth - maxX) * OnePixel);   newGraphStart = Math.round(graphStart + minX * OnePixel);  var urlBase = cURLBase;  var type = gUrlObj.getUrlParameterValue("type");  var report = gUrlObj.getUrlParameterValue("report");  var intf = gUrlObj.getUrlParameterValue("intf");  var domain = gUrlObj.getUrlParameterValue("domain");  open(urlBase + "zoom=true&type=" + type + "&intf=" + intf + "&domain=" + domain + "&reports=" + report + "&start=" + newGraphStart + "&end=" + newGraphEnd, "_self");    } }}
meta: 2281	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2281/0d1028ec95a4888d5783d937fca359af6dd38018/domainZoom.js/buggy/src/web/web/js/domainZoom.js