зеркало из https://github.com/mozilla/gecko-dev.git
Bug 874963 - Work - popups don't move when scrolling. r=fryn
This commit is contained in:
Родитель
718a21ec49
Коммит
f9e7a53ec4
|
@ -352,6 +352,7 @@ MenuPopup.prototype = {
|
|||
window.addEventListener("keypress", this, true);
|
||||
window.addEventListener("mousedown", this, true);
|
||||
Elements.stack.addEventListener("PopupChanged", this, false);
|
||||
Elements.browsers.addEventListener("PanBegin", this, false);
|
||||
|
||||
this._panel.hidden = false;
|
||||
this._position(aPositionOptions || {});
|
||||
|
@ -382,6 +383,7 @@ MenuPopup.prototype = {
|
|||
window.removeEventListener("keypress", this, true);
|
||||
window.removeEventListener("mousedown", this, true);
|
||||
Elements.stack.removeEventListener("PopupChanged", this, false);
|
||||
Elements.browsers.removeEventListener("PanBegin", this, false);
|
||||
|
||||
let self = this;
|
||||
this._panel.addEventListener("transitionend", function () {
|
||||
|
@ -497,6 +499,9 @@ MenuPopup.prototype = {
|
|||
this.hide();
|
||||
}
|
||||
break;
|
||||
case "PanBegin":
|
||||
this.hide();
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче