зеркало из https://github.com/mozilla/pjs.git
Minor autoscroll fixes.
This commit is contained in:
Родитель
b0389f951d
Коммит
4401371a77
|
@ -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)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче