зеркало из https://github.com/mozilla/pjs.git
Bug 384575 - Remove SeaMonkey's autoscroll now that its improvements have been ported to toolkit's
r=mano on the toolkit change r+sr=neil on the rest
This commit is contained in:
Родитель
22c2324517
Коммит
3cd2984351
|
@ -731,6 +731,14 @@
|
|||
|
||||
this._autoScrollPopup.addEventListener("popuphidden", this, true);
|
||||
|
||||
// we need these attributes so themers don't need to create per-platform packages
|
||||
if (screen.colorDepth > 8) { // need high color for transparency
|
||||
// Exclude second-rate platforms
|
||||
this._autoScrollPopup.setAttribute("transparent", !/BeOS|Mac|OS\/2|Photon/.test(navigator.appVersion));
|
||||
// Enable translucency on W2K+ (but not WinNT4.0)
|
||||
this._autoScrollPopup.setAttribute("translucent", /^Windows NT /.test(navigator.oscpu));
|
||||
}
|
||||
|
||||
this._scrollingView = event.originalTarget.ownerDocument.defaultView;
|
||||
if (this._scrollingView.scrollMaxX > 0) {
|
||||
this._autoScrollPopup.setAttribute("scrolldir", this._scrollingView.scrollMaxY > 0 ? "NSEW" : "EW");
|
||||
|
|
Загрузка…
Ссылка в новой задаче