mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Minor autoscroll fixes.
This commit is contained in:
parent
1c181334c2
commit
75d9577000
@ -601,22 +601,26 @@
|
||||
this._f = false;
|
||||
return;
|
||||
}
|
||||
this.showAutoscrollMarker(event);
|
||||
|
||||
if (event.button == 1)
|
||||
this.showAutoscrollMarker(event);
|
||||
}
|
||||
]]>
|
||||
</handler>
|
||||
<handler event="mousedown" button="1">
|
||||
<handler event="mousedown">
|
||||
<![CDATA[
|
||||
if (!this._isScrolling) {
|
||||
this._startX = event.clientX;
|
||||
this._startY = event.clientY;
|
||||
this._clientFrameDoc = event.originalTarget.ownerDocument;
|
||||
this._clientFrameBody = (this._clientFrameDoc.getElementsByTagName('body')[0]) ? this._clientFrameDoc.getElementsByTagName('body')[0] : this._clientFrameDoc.getElementsByTagName('*')[0];
|
||||
this._isScrolling = true;
|
||||
if (!this.isLink(event.originalTarget))
|
||||
this._snapOn = true;
|
||||
if (event.button == 1) {
|
||||
this._startX = event.clientX;
|
||||
this._startY = event.clientY;
|
||||
this._clientFrameDoc = event.originalTarget.ownerDocument;
|
||||
this._clientFrameBody = (this._clientFrameDoc.getElementsByTagName('body')[0]) ? this._clientFrameDoc.getElementsByTagName('body')[0] : this._clientFrameDoc.getElementsByTagName('*')[0];
|
||||
this._isScrolling = 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 {
|
||||
if (event.originalTarget == this._autoScrollMarkerImage)
|
||||
|
Loading…
Reference in New Issue
Block a user