зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1099491, e10s, middle click over autoscroll cursor doesn't close it, r=felipe
This commit is contained in:
Родитель
da1dc17345
Коммит
832b22079d
|
@ -1096,8 +1096,12 @@
|
|||
case "mouseup":
|
||||
case "mousedown":
|
||||
case "contextmenu": {
|
||||
if (!this._ignoreMouseEvents)
|
||||
this._autoScrollPopup.hidePopup();
|
||||
if (!this._ignoreMouseEvents) {
|
||||
// Use a timeout to prevent the mousedown from opening the popup again.
|
||||
// Ideally, we could use preventDefault here, but contenteditable
|
||||
// and middlemouse paste don't interact well. See bug 1188536.
|
||||
setTimeout(() => this._autoScrollPopup.hidePopup(), 0);
|
||||
}
|
||||
this._ignoreMouseEvents = false;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче