This commit is contained in:
blakeross%telocity.com 2003-07-06 01:02:48 +00:00
Родитель 1c181334c2
Коммит 75d9577000
1 изменённых файлов: 14 добавлений и 10 удалений

Просмотреть файл

@ -601,22 +601,26 @@
this._f = false; this._f = false;
return; return;
} }
this.showAutoscrollMarker(event);
if (event.button == 1)
this.showAutoscrollMarker(event);
} }
]]> ]]>
</handler> </handler>
<handler event="mousedown" button="1"> <handler event="mousedown">
<![CDATA[ <![CDATA[
if (!this._isScrolling) { if (!this._isScrolling) {
this._startX = event.clientX; if (event.button == 1) {
this._startY = event.clientY; this._startX = event.clientX;
this._clientFrameDoc = event.originalTarget.ownerDocument; this._startY = event.clientY;
this._clientFrameBody = (this._clientFrameDoc.getElementsByTagName('body')[0]) ? this._clientFrameDoc.getElementsByTagName('body')[0] : this._clientFrameDoc.getElementsByTagName('*')[0]; this._clientFrameDoc = event.originalTarget.ownerDocument;
this._isScrolling = true; this._clientFrameBody = (this._clientFrameDoc.getElementsByTagName('body')[0]) ? this._clientFrameDoc.getElementsByTagName('body')[0] : this._clientFrameDoc.getElementsByTagName('*')[0];
if (!this.isLink(event.originalTarget)) this._isScrolling = true;
this._snapOn = true; if (!this.isLink(event.originalTarget))
this._snapOn = true;
window.setTimeout(function foo(a) { a.autoScrollLoop() }, 5, this); window.setTimeout(function foo(a) { a.autoScrollLoop() }, 5, this);
}
} }
else { else {
if (event.originalTarget == this._autoScrollMarkerImage) if (event.originalTarget == this._autoScrollMarkerImage)