var o=self._fromEvt(e); self._startPoint={ x:e.pageX, y:e.pageY }; var win = dijit.getDocumentWindow(self.node.ownerDocument); // figure out the coordinates within the iframe self._ctr=dojo._abs(self.node); var scroll=dojo.withGlobal(win,dojo._docScroll); self._ctr={x:self._ctr.x-scroll.x, y:self._ctr.y-scroll.y}; var X=e.clientX-self._ctr.x, Y=e.clientY-self._ctr.y; self._lp={ x:X, y:Y }; // capture it separately self._start={ x:X, y:Y }; self._end={ x:X, y:Y }; self._absEnd={ x:X, y:Y }; if(!o){ self.clearSelections(); self._ctool.onMouseDown(e); }else{ if(o.type && o.type()!="Anchor"){ self.select(o); } o.beginEdit(); self._c=o; }