rem: pt1 = evtPosition(evt); unregisterEvent("mousedown", overlay, zoomStart);   moveElement(zoomdiv, Rectangle(pt1.x, pt1.y, 0, 0)); showElement(zoomdiv, true);  registerEvent("mousemove", overlay, zoomMove); registerEvent("mousemove", zoomdiv, zoomMove);  registerEvent("mouseup", overlay, zoomEnd); registerEvent("mouseup", zoomdiv, zoomEnd); return stopEvent(evt); } 
add: pt1 = evtPosition(evt); unregisterEvent("mousedown", overlay, zoomStart); unregisterEvent("mousedown", elemScaler, zoomStart);   moveElement(zoomdiv, Rectangle(pt1.x, pt1.y, 0, 0)); showElement(zoomdiv, true);  registerEvent("mousemove", overlay, zoomMove); registerEvent("mousemove", zoomdiv, zoomMove); registerEvent("mousemove", elemScaler, zoomMove);  registerEvent("mouseup", overlay, zoomEnd); registerEvent("mouseup", zoomdiv, zoomEnd); registerEvent("mouseup", elemScaler, zoomEnd); return stopEvent(evt); } 
context: 	function zoomStart(evt) {		pt1 = evtPosition(evt);		unregisterEvent("mousedown", overlay, zoomStart);		// unregisterEvent("mousedown", zoomdiv, zoomStart);		// setup and show zoom div		moveElement(zoomdiv, Rectangle(pt1.x, pt1.y, 0, 0));		showElement(zoomdiv, true);		// register move events		registerEvent("mousemove", overlay, zoomMove);		registerEvent("mousemove", zoomdiv, zoomMove);		// register up events for drag end		registerEvent("mouseup", overlay, zoomEnd);		registerEvent("mouseup", zoomdiv, zoomEnd);		return stopEvent(evt);		}
meta: 7747	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7747/b558443abc997acd0db2f5f940a087d1a2056c8e/dllib.js/clean/client/digitallibrary/greyskin/dllib.js