Bug 621838 - The Addons pane is still pannable when the context menu of the search textbox is visible [r=mfinkle]

This commit is contained in:
Vivien Nicolas 2010-12-29 16:38:45 +01:00
Родитель 3a9b5af818
Коммит e73e4cd206
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1687,7 +1687,11 @@
if (hasData && (!aTextbox.readOnly || aIgnoreReadOnly))
json.types.push("paste");
ContextHelper.showPopup({ target: aTextbox, json: json });
if (ContextHelper.showPopup({ target: aTextbox, json: json })) {
let event = document.createEvent("Events");
event.initEvent("CancelTouchSequence", true, false);
document.dispatchEvent(event);
}
]]></body>
</method>
</implementation>

Просмотреть файл

@ -176,6 +176,7 @@ MouseModule.prototype = {
this._targetScrollbox = null;
this._targetScrollInterface = null;
this._inputField = null;
this._cleanClickBuffer();
},